Compare commits
10 Commits
35fd93d00a
...
392adc667e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
392adc667e | ||
|
|
72053ded46 | ||
|
|
81b26c9230 | ||
|
|
f00b19f981 | ||
|
|
7eef0bfb32 | ||
|
|
dd81517a49 | ||
|
|
0dd18e8856 | ||
|
|
671a99fedf | ||
|
|
1dc72460d6 | ||
|
|
839b541914 |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.DS_Store
|
||||
._.DS_Store
|
||||
**/.DS_Store
|
||||
**/._.DS_Store
|
||||
BIN
Baekjoon/.DS_Store
vendored
BIN
Baekjoon/.DS_Store
vendored
Binary file not shown.
11
Baekjoon/c/1000.c
Executable file
11
Baekjoon/c/1000.c
Executable file
@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
|
||||
int a, b, n;
|
||||
scanf("%d %d",&a, &b);
|
||||
n = a + b;
|
||||
printf("%d", n);
|
||||
|
||||
return 0;
|
||||
}
|
||||
12
Baekjoon/c/1001.c
Executable file
12
Baekjoon/c/1001.c
Executable file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
|
||||
int a, b;
|
||||
|
||||
scanf("%d %d",&a, &b);
|
||||
printf("%d",a-b);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
9
Baekjoon/c/1008.c
Executable file
9
Baekjoon/c/1008.c
Executable file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a, b;
|
||||
scanf("%d %d",&a, &b);
|
||||
printf("%.9f",(double)a/b);
|
||||
return 0;
|
||||
|
||||
}
|
||||
8
Baekjoon/c/10430.c
Executable file
8
Baekjoon/c/10430.c
Executable file
@ -0,0 +1,8 @@
|
||||
#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;
|
||||
}
|
||||
8
Baekjoon/c/10869.c
Executable file
8
Baekjoon/c/10869.c
Executable file
@ -0,0 +1,8 @@
|
||||
#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;
|
||||
}
|
||||
8
Baekjoon/c/10926.c
Executable file
8
Baekjoon/c/10926.c
Executable file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
char a[50];
|
||||
scanf("%s",a);
|
||||
printf("%s??\!",a);
|
||||
return 0;
|
||||
}
|
||||
12
Baekjoon/c/10998.c
Executable file
12
Baekjoon/c/10998.c
Executable file
@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
|
||||
int a, b;
|
||||
|
||||
scanf("%d %d",&a, &b);
|
||||
printf("%d",a*b);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
8
Baekjoon/c/11382.c
Executable file
8
Baekjoon/c/11382.c
Executable file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
long int a, b, c;
|
||||
scanf("%ld %ld %ld",&a, &b, &c);
|
||||
printf("%ld",a+b+c);
|
||||
return 0;
|
||||
}
|
||||
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;
|
||||
}
|
||||
8
Baekjoon/c/18108.c
Executable file
8
Baekjoon/c/18108.c
Executable file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int a;
|
||||
scanf("%d",&a);
|
||||
printf("%d",a-543);
|
||||
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;
|
||||
}
|
||||
8
Baekjoon/c/2557.c
Executable file
8
Baekjoon/c/2557.c
Executable file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
|
||||
printf("Hello World!");
|
||||
|
||||
return 0;
|
||||
}
|
||||
8
Baekjoon/c/2588.c
Executable file
8
Baekjoon/c/2588.c
Executable file
@ -0,0 +1,8 @@
|
||||
#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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
9
Baekjoon/c/9498.c
Normal file
9
Baekjoon/c/9498.c
Normal file
@ -0,0 +1,9 @@
|
||||
#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;
|
||||
}
|
||||
7
Baekjoon/c/foo.c
Normal file
7
Baekjoon/c/foo.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
printf("Hello World!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
7
Baekjoon/js/1000.js
Executable file
7
Baekjoon/js/1000.js
Executable file
@ -0,0 +1,7 @@
|
||||
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);
|
||||
7
Baekjoon/js/1001.js
Executable file
7
Baekjoon/js/1001.js
Executable file
@ -0,0 +1,7 @@
|
||||
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);
|
||||
5
Baekjoon/js/1008.js
Executable file
5
Baekjoon/js/1008.js
Executable file
@ -0,0 +1,5 @@
|
||||
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);
|
||||
6
Baekjoon/js/10430.js
Executable file
6
Baekjoon/js/10430.js
Executable file
@ -0,0 +1,6 @@
|
||||
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);
|
||||
5
Baekjoon/js/10869.js
Executable file
5
Baekjoon/js/10869.js
Executable file
@ -0,0 +1,5 @@
|
||||
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);
|
||||
3
Baekjoon/js/10926.js
Executable file
3
Baekjoon/js/10926.js
Executable file
@ -0,0 +1,3 @@
|
||||
const fs = require("fs");
|
||||
const s = fs.readFileSync("/dev/stdin").toString().trim();
|
||||
console.log(s+"??!");
|
||||
5
Baekjoon/js/10998.js
Executable file
5
Baekjoon/js/10998.js
Executable file
@ -0,0 +1,5 @@
|
||||
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);
|
||||
2
Baekjoon/js/11382.js
Executable file
2
Baekjoon/js/11382.js
Executable file
@ -0,0 +1,2 @@
|
||||
const n = require("fs").readFileSync("/dev/stdin").toString().split(" ").map(Number);
|
||||
console.log(n[0]+n[1]+n[2]);
|
||||
3
Baekjoon/js/18108.js
Executable file
3
Baekjoon/js/18108.js
Executable file
@ -0,0 +1,3 @@
|
||||
const fs = require("fs");
|
||||
const n = fs.readFileSync("/dev/stdin").toString();
|
||||
console.log(n-543);
|
||||
1
Baekjoon/js/2557.js
Executable file
1
Baekjoon/js/2557.js
Executable file
@ -0,0 +1 @@
|
||||
console.log("Hello World!")
|
||||
5
Baekjoon/js/2588.js
Executable file
5
Baekjoon/js/2588.js
Executable file
@ -0,0 +1,5 @@
|
||||
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
Baekjoon/js/foo.js
Normal file
1
Baekjoon/js/foo.js
Normal file
@ -0,0 +1 @@
|
||||
console.log("hello world!");
|
||||
2
Baekjoon/python/1000.py
Normal file → Executable file
2
Baekjoon/python/1000.py
Normal file → Executable file
@ -1 +1 @@
|
||||
print(sum(list(map(int,input().split()))))
|
||||
print(sum(map(int, input().split())))
|
||||
4
Baekjoon/python/1001.py
Normal file → Executable file
4
Baekjoon/python/1001.py
Normal file → Executable file
@ -1,4 +1,2 @@
|
||||
a, b = map(int,input().split())
|
||||
a, b = map(int, input().split())
|
||||
print(a-b)
|
||||
|
||||
# print(eval('+0-'.join(input())))
|
||||
5
Baekjoon/python/1008.py
Normal file → Executable file
5
Baekjoon/python/1008.py
Normal file → Executable file
@ -1,5 +1,2 @@
|
||||
a, b = map(int,input().split())
|
||||
a, b = map(int, input().split())
|
||||
print(a/b)
|
||||
|
||||
# a,_,b = input()
|
||||
# print(int(a)/int(b))
|
||||
@ -1,4 +0,0 @@
|
||||
print("\ /\ ")
|
||||
print(" ) ( ')")
|
||||
print("( / )")
|
||||
print(" \(__)|")
|
||||
@ -1,5 +0,0 @@
|
||||
print("|\\_/|")
|
||||
print("|q p| /}")
|
||||
print('( 0 )"""\\')
|
||||
print('|"^"` |')
|
||||
print("||_/=\\\\__|")
|
||||
2
Baekjoon/python/10430.py
Normal file → Executable file
2
Baekjoon/python/10430.py
Normal file → Executable file
@ -1,2 +1,2 @@
|
||||
a,b,c = map(int, input().split())
|
||||
a, b, c = map(int,input().split())
|
||||
print((a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c)
|
||||
0
Baekjoon/python/10869.py
Normal file → Executable file
0
Baekjoon/python/10869.py
Normal file → Executable file
2
Baekjoon/python/10926.py
Normal file → Executable file
2
Baekjoon/python/10926.py
Normal file → Executable file
@ -1 +1 @@
|
||||
print(input()+'??!')
|
||||
print(input()+"??!")
|
||||
@ -1,2 +0,0 @@
|
||||
for i in range(int(input())):
|
||||
print(sum(map(int,input().split())))
|
||||
2
Baekjoon/python/10998.py
Normal file → Executable file
2
Baekjoon/python/10998.py
Normal file → Executable file
@ -1,2 +1,2 @@
|
||||
a, b = map(int,input().split())
|
||||
a, b = map(int, input().split())
|
||||
print(a*b)
|
||||
2
Baekjoon/python/11382.py
Normal file → Executable file
2
Baekjoon/python/11382.py
Normal file → Executable file
@ -1 +1 @@
|
||||
print(sum(map(int, input().split())))
|
||||
print(sum(map(int,input().split())))
|
||||
@ -1,4 +1,3 @@
|
||||
x = int(input())
|
||||
y = int(input())
|
||||
|
||||
print("3421"[x>0::2][y>0])
|
||||
@ -1,3 +0,0 @@
|
||||
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
Normal file → Executable file
0
Baekjoon/python/18108.py
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
h, m = map(int, input().split())
|
||||
d = int(input())
|
||||
t = h*60 + m + d
|
||||
t = 60*h + m + d
|
||||
print(t//60%24, t%60)
|
||||
@ -1,7 +0,0 @@
|
||||
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 +0,0 @@
|
||||
print("long "*(int(input())//4) + "int")
|
||||
0
Baekjoon/python/2557.py
Normal file → Executable file
0
Baekjoon/python/2557.py
Normal file → Executable file
9
Baekjoon/python/2588.py
Normal file → Executable file
9
Baekjoon/python/2588.py
Normal file → Executable file
@ -1,9 +1,2 @@
|
||||
# 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()
|
||||
print(*[a*int(i) for i in b][::-1],a*int(b))
|
||||
print(*[a*int(i) for i in b][::-1], a*int(b))
|
||||
@ -1,2 +0,0 @@
|
||||
N = int(input())
|
||||
for i in range(9): print(N,"*",(i+1),"=",N*(i+1))
|
||||
@ -1,2 +1,2 @@
|
||||
y = int(input())
|
||||
print(+(y%400==0 or (y%4==0 and y%100!=0)))
|
||||
n = int(input())
|
||||
print(+(n%400==0 or (n%4==0 and n%100!=0)))
|
||||
@ -1,3 +1,3 @@
|
||||
h, m = map(int,input().split())
|
||||
t = 60*h + m - 45
|
||||
h, m = map(int, input().split())
|
||||
t = 60*h + m - 45 + 1440
|
||||
print(t//60%24, t%60)
|
||||
@ -1,2 +0,0 @@
|
||||
n = int(input())
|
||||
print(n*(n+1)//2)
|
||||
@ -1,3 +1 @@
|
||||
# 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])
|
||||
1
Baekjoon/python/foo.py
Normal file
1
Baekjoon/python/foo.py
Normal file
@ -0,0 +1 @@
|
||||
print("hello world!")
|
||||
Loading…
x
Reference in New Issue
Block a user