20250509 baekjoon
This commit is contained in:
parent
81b26c9230
commit
72053ded46
12
Baekjoon/c/1330.c
Normal file
12
Baekjoon/c/1330.c
Normal file
@ -0,0 +1,12 @@
|
||||
# include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
scanf("%d %d",&a, &b);
|
||||
/*if (a>b) printf(">");
|
||||
else if (a==b) printf("==");
|
||||
else printf("<");*/
|
||||
puts(a-b?a>b?">":"<":"==");
|
||||
|
||||
return 0;
|
||||
}
|
||||
11
Baekjoon/c/14681.c
Normal file
11
Baekjoon/c/14681.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int x,y;
|
||||
int a[2][2] = {
|
||||
{1,4},
|
||||
{2,3}
|
||||
};
|
||||
scanf("%d %d",&x, &y);
|
||||
printf("%d",a[x<0][y<0]);
|
||||
return 0;
|
||||
}
|
||||
10
Baekjoon/c/2480.c
Normal file
10
Baekjoon/c/2480.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int a, b, c, max;
|
||||
scanf("%d %d %d",&a,&b,&c);
|
||||
max = a;
|
||||
if (b>max) max=b;
|
||||
if (c>max) max=c;
|
||||
printf("%d",((a==b)&&(b==c)) ? a*1000+10000 : (a==b||a==c) ? a*100+1000 : (b==c) ? b*100+1000 : max*100);
|
||||
return 0;
|
||||
}
|
||||
9
Baekjoon/c/2525.c
Normal file
9
Baekjoon/c/2525.c
Normal file
@ -0,0 +1,9 @@
|
||||
# include <stdio.h>
|
||||
int main() {
|
||||
int h, m, d, t;
|
||||
scanf("%d %d",&h, &m);
|
||||
scanf("%d",&d);
|
||||
t = 60*h+m+d;
|
||||
printf("%d %d",t/60%24,t%60);
|
||||
return 0;
|
||||
}
|
||||
7
Baekjoon/c/2753.c
Normal file
7
Baekjoon/c/2753.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
printf(!(n%400)||(!(n%4)&&(n%100))?"1":"0");
|
||||
return 0;
|
||||
}
|
||||
12
Baekjoon/c/2884.c
Normal file
12
Baekjoon/c/2884.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int h, m, t;
|
||||
scanf("%d %d",&h, &m);
|
||||
t = 60*h+m-45;
|
||||
// if (t<0) printf("23 %d",60+t);
|
||||
// else if (t==0) printf("0 0");
|
||||
// else printf("%d %d",t/60,t%60);
|
||||
if (t<0) t += 1440;
|
||||
printf("%d %d",(t/60+24)%24,(t%60+60)%60);
|
||||
return 0;
|
||||
}
|
||||
7
Baekjoon/c/9498.c
Normal file
7
Baekjoon/c/9498.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
puts(n>89?"A":n>79?"B":n>69?"C":n>59?"D":"F");
|
||||
return 0;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user