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