Compare commits
No commits in common. "392adc667eb6208d0e411fdf558f153e6cd5c164" and "35fd93d00a29bae5de0cbdb8c41083fc46e99a61" have entirely different histories.
392adc667e
...
35fd93d00a
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
.DS_Store
|
|
||||||
._.DS_Store
|
|
||||||
**/.DS_Store
|
|
||||||
**/._.DS_Store
|
|
||||||
BIN
Baekjoon/.DS_Store
vendored
Normal file
BIN
Baekjoon/.DS_Store
vendored
Normal file
Binary file not shown.
@ -1,11 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
|
|
||||||
int a, b, n;
|
|
||||||
scanf("%d %d",&a, &b);
|
|
||||||
n = a + b;
|
|
||||||
printf("%d", n);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
|
|
||||||
int a, b;
|
|
||||||
|
|
||||||
scanf("%d %d",&a, &b);
|
|
||||||
printf("%d",a-b);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int a, b;
|
|
||||||
scanf("%d %d",&a, &b);
|
|
||||||
printf("%.9f",(double)a/b);
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int a, b, c;
|
|
||||||
scanf("%d %d %d",&a, &b, &c);
|
|
||||||
printf("%d %d %d %d",(a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int a, b;
|
|
||||||
scanf("%d %d",&a,&b);
|
|
||||||
printf("%d %d %d %d %d",a+b,a-b,a*b,a/b,a%b);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
char a[50];
|
|
||||||
scanf("%s",a);
|
|
||||||
printf("%s??\!",a);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
|
|
||||||
int a, b;
|
|
||||||
|
|
||||||
scanf("%d %d",&a, &b);
|
|
||||||
printf("%d",a*b);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
long int a, b, c;
|
|
||||||
scanf("%ld %ld %ld",&a, &b, &c);
|
|
||||||
printf("%ld",a+b+c);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
# 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;
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
#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;
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int a;
|
|
||||||
scanf("%d",&a);
|
|
||||||
printf("%d",a-543);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
#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;
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
# 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;
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
|
|
||||||
printf("Hello World!");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
int a, b;
|
|
||||||
scanf("%d %d",&a, &b);
|
|
||||||
printf("%d %d %d %d",a*(b%10),a*(((b%100)-(b%10)))/10,a*(b-(b%100))/100,a*b);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
int main() {
|
|
||||||
int n;
|
|
||||||
scanf("%d",&n);
|
|
||||||
printf(!(n%400)||(!(n%4)&&(n%100))?"1":"0");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
#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;
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
int main() {
|
|
||||||
int n;
|
|
||||||
char s[11] = "FFFFFFDCBAA";
|
|
||||||
scanf("%d",&n);
|
|
||||||
// puts(n>89?"A":n>79?"B":n>69?"C":n>59?"D":"F");
|
|
||||||
printf("%c",s[n/10]);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main(){
|
|
||||||
printf("Hello World!\n");
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
|
|
||||||
console.log(a+b);
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
|
|
||||||
console.log(a-b);
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
console.log(a/b);
|
|
||||||
@ -1,6 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
const c = parseInt(n[2]);
|
|
||||||
console.log((a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c);
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
console.log(a+b,a-b,a*b,Math.floor(a/b),a%b);
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const s = fs.readFileSync("/dev/stdin").toString().trim();
|
|
||||||
console.log(s+"??!");
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString().split(" ");
|
|
||||||
const a = parseInt(n[0]);
|
|
||||||
const b = parseInt(n[1]);
|
|
||||||
console.log(a*b);
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
const n = require("fs").readFileSync("/dev/stdin").toString().split(" ").map(Number);
|
|
||||||
console.log(n[0]+n[1]+n[2]);
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
const fs = require("fs");
|
|
||||||
const n = fs.readFileSync("/dev/stdin").toString();
|
|
||||||
console.log(n-543);
|
|
||||||
@ -1 +0,0 @@
|
|||||||
console.log("Hello World!")
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const n = require("fs").readFileSync("/dev/stdin").toString().split("\n").map(Number);
|
|
||||||
const a = n[1]%10;
|
|
||||||
const b = (n[1]%100 - a)/10;
|
|
||||||
const c = (n[1]%1000-n[1]%100)/100;
|
|
||||||
console.log(n[0]*a,n[0]*b,n[0]*c,n[0]*n[1]);
|
|
||||||
@ -1 +0,0 @@
|
|||||||
console.log("hello world!");
|
|
||||||
2
Baekjoon/python/1000.py
Executable file → Normal file
2
Baekjoon/python/1000.py
Executable file → Normal file
@ -1 +1 @@
|
|||||||
print(sum(map(int, input().split())))
|
print(sum(list(map(int,input().split()))))
|
||||||
|
|||||||
2
Baekjoon/python/1001.py
Executable file → Normal file
2
Baekjoon/python/1001.py
Executable file → Normal file
@ -1,2 +1,4 @@
|
|||||||
a, b = map(int,input().split())
|
a, b = map(int,input().split())
|
||||||
print(a-b)
|
print(a-b)
|
||||||
|
|
||||||
|
# print(eval('+0-'.join(input())))
|
||||||
3
Baekjoon/python/1008.py
Executable file → Normal file
3
Baekjoon/python/1008.py
Executable file → Normal file
@ -1,2 +1,5 @@
|
|||||||
a, b = map(int,input().split())
|
a, b = map(int,input().split())
|
||||||
print(a/b)
|
print(a/b)
|
||||||
|
|
||||||
|
# a,_,b = input()
|
||||||
|
# print(int(a)/int(b))
|
||||||
4
Baekjoon/python/10171.py
Normal file
4
Baekjoon/python/10171.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
print("\ /\ ")
|
||||||
|
print(" ) ( ')")
|
||||||
|
print("( / )")
|
||||||
|
print(" \(__)|")
|
||||||
5
Baekjoon/python/10172.py
Normal file
5
Baekjoon/python/10172.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
print("|\\_/|")
|
||||||
|
print("|q p| /}")
|
||||||
|
print('( 0 )"""\\')
|
||||||
|
print('|"^"` |')
|
||||||
|
print("||_/=\\\\__|")
|
||||||
0
Baekjoon/python/10430.py
Executable file → Normal file
0
Baekjoon/python/10430.py
Executable file → Normal file
0
Baekjoon/python/10869.py
Executable file → Normal file
0
Baekjoon/python/10869.py
Executable file → Normal file
2
Baekjoon/python/10926.py
Executable file → Normal file
2
Baekjoon/python/10926.py
Executable file → Normal file
@ -1 +1 @@
|
|||||||
print(input()+"??!")
|
print(input()+'??!')
|
||||||
2
Baekjoon/python/10950.py
Normal file
2
Baekjoon/python/10950.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
for i in range(int(input())):
|
||||||
|
print(sum(map(int,input().split())))
|
||||||
0
Baekjoon/python/10998.py
Executable file → Normal file
0
Baekjoon/python/10998.py
Executable file → Normal file
0
Baekjoon/python/11382.py
Executable file → Normal file
0
Baekjoon/python/11382.py
Executable file → Normal file
@ -1,3 +1,4 @@
|
|||||||
x = int(input())
|
x = int(input())
|
||||||
y = int(input())
|
y = int(input())
|
||||||
|
|
||||||
print("3421"[x>0::2][y>0])
|
print("3421"[x>0::2][y>0])
|
||||||
3
Baekjoon/python/15552.py
Normal file
3
Baekjoon/python/15552.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import sys
|
||||||
|
for i in range(int(sys.stdin.readline())):
|
||||||
|
sys.stdout.write(str(sum(map(int, sys.stdin.readline().split())))+"\n")
|
||||||
0
Baekjoon/python/18108.py
Executable file → Normal file
0
Baekjoon/python/18108.py
Executable file → Normal file
@ -1,4 +1,4 @@
|
|||||||
h, m = map(int, input().split())
|
h, m = map(int, input().split())
|
||||||
d = int(input())
|
d = int(input())
|
||||||
t = 60*h + m + d
|
t = h*60 + m + d
|
||||||
print(t//60%24, t%60)
|
print(t//60%24, t%60)
|
||||||
7
Baekjoon/python/25304.py
Normal file
7
Baekjoon/python/25304.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
X = int(input())
|
||||||
|
Y = 0
|
||||||
|
for i in range(int(input())):
|
||||||
|
A, B = map(int,input().split())
|
||||||
|
Y += A*B
|
||||||
|
if X==Y : print("Yes")
|
||||||
|
else : print("No")
|
||||||
1
Baekjoon/python/25314.py
Normal file
1
Baekjoon/python/25314.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print("long "*(int(input())//4) + "int")
|
||||||
0
Baekjoon/python/2557.py
Executable file → Normal file
0
Baekjoon/python/2557.py
Executable file → Normal file
7
Baekjoon/python/2588.py
Executable file → Normal file
7
Baekjoon/python/2588.py
Executable file → Normal file
@ -1,2 +1,9 @@
|
|||||||
|
# a, b = int(input()), list(map(int, " ".join(input()).split()))
|
||||||
|
# c = 0
|
||||||
|
# for i in range(len(b)):
|
||||||
|
# c += a*b[len(b)-i-1]*10**i
|
||||||
|
# print(a*b[len(b)-i-1])
|
||||||
|
# print(c)
|
||||||
|
|
||||||
a, b = int(input()), input()
|
a, b = int(input()), input()
|
||||||
print(*[a*int(i) for i in b][::-1],a*int(b))
|
print(*[a*int(i) for i in b][::-1],a*int(b))
|
||||||
2
Baekjoon/python/2739.py
Normal file
2
Baekjoon/python/2739.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
N = int(input())
|
||||||
|
for i in range(9): print(N,"*",(i+1),"=",N*(i+1))
|
||||||
@ -1,2 +1,2 @@
|
|||||||
n = int(input())
|
y = int(input())
|
||||||
print(+(n%400==0 or (n%4==0 and n%100!=0)))
|
print(+(y%400==0 or (y%4==0 and y%100!=0)))
|
||||||
@ -1,3 +1,3 @@
|
|||||||
h, m = map(int,input().split())
|
h, m = map(int,input().split())
|
||||||
t = 60*h + m - 45 + 1440
|
t = 60*h + m - 45
|
||||||
print(t//60%24, t%60)
|
print(t//60%24, t%60)
|
||||||
2
Baekjoon/python/8393.py
Normal file
2
Baekjoon/python/8393.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
n = int(input())
|
||||||
|
print(n*(n+1)//2)
|
||||||
@ -1 +1,3 @@
|
|||||||
|
# a = int(input())
|
||||||
|
# print("A" if a > 89 else "B" if a > 79 else "C" if a >69 else "D" if a>59 else "F")
|
||||||
print("FFFFFFDCBAA"[int(input())//10])
|
print("FFFFFFDCBAA"[int(input())//10])
|
||||||
@ -1 +0,0 @@
|
|||||||
print("hello world!")
|
|
||||||
Loading…
x
Reference in New Issue
Block a user