From 26722edfbf847d9358039c6ed3c7528a2a71a0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=98=88=EC=B0=AC?= Date: Thu, 7 Mar 2024 23:42:52 +0900 Subject: [PATCH] first commit --- Baekjoon/.DS_Store | Bin 0 -> 6148 bytes Baekjoon/python/1000.py | 1 + Baekjoon/python/1001.py | 4 ++++ Baekjoon/python/1008.py | 5 +++++ Baekjoon/python/10171.py | 4 ++++ Baekjoon/python/10172.py | 5 +++++ Baekjoon/python/10430.py | 2 ++ Baekjoon/python/10869.py | 2 ++ Baekjoon/python/10926.py | 1 + Baekjoon/python/10998.py | 2 ++ Baekjoon/python/11382.py | 1 + Baekjoon/python/1330.py | 3 +++ Baekjoon/python/18108.py | 1 + Baekjoon/python/2557.py | 1 + Baekjoon/python/2588.py | 9 +++++++++ Baekjoon/python/2753.py | 2 ++ Baekjoon/python/9498.py | 3 +++ 17 files changed, 46 insertions(+) create mode 100644 Baekjoon/.DS_Store create mode 100644 Baekjoon/python/1000.py create mode 100644 Baekjoon/python/1001.py create mode 100644 Baekjoon/python/1008.py create mode 100644 Baekjoon/python/10171.py create mode 100644 Baekjoon/python/10172.py create mode 100644 Baekjoon/python/10430.py create mode 100644 Baekjoon/python/10869.py create mode 100644 Baekjoon/python/10926.py create mode 100644 Baekjoon/python/10998.py create mode 100644 Baekjoon/python/11382.py create mode 100644 Baekjoon/python/1330.py create mode 100644 Baekjoon/python/18108.py create mode 100644 Baekjoon/python/2557.py create mode 100644 Baekjoon/python/2588.py create mode 100644 Baekjoon/python/2753.py create mode 100644 Baekjoon/python/9498.py diff --git a/Baekjoon/.DS_Store b/Baekjoon/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..800a6ef829956bb7d2c3a23b8c450ffc28987b68 GIT binary patch literal 6148 zcmeHK!AiqG5Z$e{O;Di+1&<3}3${f;@e*sjixEAj)W#GWOtYa)Em8_O>z8=+q(7ja z;P*JQyA@*}D8aygu-&jFlK;7ARuQhUOc=dDJP%8A}0>t7k|S zdBc9}h0>eyCc|H30QauIVs^_C)?wNGd-mcm=qHuR8_&(<=L^N6U0f)hyB#@nlU6e5 z*IT_)934p+dXs+3I}X~zW@&j(MoBA(+C3Ez_-$}GI|(9R4(oCd`F$1Z>IvJn>}F|o zG^%dZ%A&ei8<)jsyH+WSjqTcaY+Ea9>pO?d>#!TiJ53~qZ%)aQ!3o?$C$pyTs_I_K zZmb>n;@A1EY&6U_Ydt+aJf6M2>`wdmzxu?T&v_0oUFJP*++GyQ=nCwUcSj!*Vt^PR z24>BGIfJZ)Stq7^!~iky=NZ8BL4YDU22+jd=zvC*0DyTgD}g@N5*Q;4ItEjXFayGM zD4-7Iro`Yn9PGmQIR;aWI-GG+d~lPQn+k=i?C^Y{+!=Q?QcDaF16c;<^st2Y|NhVQ ze>R9l!~ikyuNdI@hTEvalFZ#YwK%+M1?UAR3i_oQKSH3Ru43@Tt9TVu3D^a803Cy= SMzDa;kAR|q8e(9k47>waaBYhK literal 0 HcmV?d00001 diff --git a/Baekjoon/python/1000.py b/Baekjoon/python/1000.py new file mode 100644 index 0000000..5142194 --- /dev/null +++ b/Baekjoon/python/1000.py @@ -0,0 +1 @@ +print(sum(list(map(int,input().split())))) diff --git a/Baekjoon/python/1001.py b/Baekjoon/python/1001.py new file mode 100644 index 0000000..ba193bd --- /dev/null +++ b/Baekjoon/python/1001.py @@ -0,0 +1,4 @@ +a, b = map(int,input().split()) +print(a-b) + +# print(eval('+0-'.join(input()))) \ No newline at end of file diff --git a/Baekjoon/python/1008.py b/Baekjoon/python/1008.py new file mode 100644 index 0000000..1a1b7db --- /dev/null +++ b/Baekjoon/python/1008.py @@ -0,0 +1,5 @@ +a, b = map(int,input().split()) +print(a/b) + +# a,_,b = input() +# print(int(a)/int(b)) \ No newline at end of file diff --git a/Baekjoon/python/10171.py b/Baekjoon/python/10171.py new file mode 100644 index 0000000..9c1d5c7 --- /dev/null +++ b/Baekjoon/python/10171.py @@ -0,0 +1,4 @@ +print("\ /\ ") +print(" ) ( ')") +print("( / )") +print(" \(__)|") \ No newline at end of file diff --git a/Baekjoon/python/10172.py b/Baekjoon/python/10172.py new file mode 100644 index 0000000..8eaaf96 --- /dev/null +++ b/Baekjoon/python/10172.py @@ -0,0 +1,5 @@ +print("|\\_/|") +print("|q p| /}") +print('( 0 )"""\\') +print('|"^"` |') +print("||_/=\\\\__|") \ No newline at end of file diff --git a/Baekjoon/python/10430.py b/Baekjoon/python/10430.py new file mode 100644 index 0000000..c211e27 --- /dev/null +++ b/Baekjoon/python/10430.py @@ -0,0 +1,2 @@ +a,b,c = map(int, input().split()) +print((a+b)%c,((a%c)+(b%c))%c,(a*b)%c,((a%c)*(b%c))%c) \ No newline at end of file diff --git a/Baekjoon/python/10869.py b/Baekjoon/python/10869.py new file mode 100644 index 0000000..e853fdf --- /dev/null +++ b/Baekjoon/python/10869.py @@ -0,0 +1,2 @@ +a, b = map(int, input().split()) +print(a+b,a-b,a*b,a//b,a%b) \ No newline at end of file diff --git a/Baekjoon/python/10926.py b/Baekjoon/python/10926.py new file mode 100644 index 0000000..e5eef20 --- /dev/null +++ b/Baekjoon/python/10926.py @@ -0,0 +1 @@ +print(input()+'??!') \ No newline at end of file diff --git a/Baekjoon/python/10998.py b/Baekjoon/python/10998.py new file mode 100644 index 0000000..0b2759a --- /dev/null +++ b/Baekjoon/python/10998.py @@ -0,0 +1,2 @@ +a, b = map(int,input().split()) +print(a*b) \ No newline at end of file diff --git a/Baekjoon/python/11382.py b/Baekjoon/python/11382.py new file mode 100644 index 0000000..ccb694d --- /dev/null +++ b/Baekjoon/python/11382.py @@ -0,0 +1 @@ +print(sum(map(int, input().split()))) \ No newline at end of file diff --git a/Baekjoon/python/1330.py b/Baekjoon/python/1330.py new file mode 100644 index 0000000..d925dea --- /dev/null +++ b/Baekjoon/python/1330.py @@ -0,0 +1,3 @@ +a, b = map(int, input().split()) +# print(">" if a>b else "<" if a"[a>b],"=="][a==b]) \ No newline at end of file diff --git a/Baekjoon/python/18108.py b/Baekjoon/python/18108.py new file mode 100644 index 0000000..fdd5531 --- /dev/null +++ b/Baekjoon/python/18108.py @@ -0,0 +1 @@ +print(int(input())-543) \ No newline at end of file diff --git a/Baekjoon/python/2557.py b/Baekjoon/python/2557.py new file mode 100644 index 0000000..1dc45ac --- /dev/null +++ b/Baekjoon/python/2557.py @@ -0,0 +1 @@ +print("Hello World!") \ No newline at end of file diff --git a/Baekjoon/python/2588.py b/Baekjoon/python/2588.py new file mode 100644 index 0000000..957c39a --- /dev/null +++ b/Baekjoon/python/2588.py @@ -0,0 +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() +print(*[a*int(i) for i in b][::-1],a*int(b)) diff --git a/Baekjoon/python/2753.py b/Baekjoon/python/2753.py new file mode 100644 index 0000000..a6bede6 --- /dev/null +++ b/Baekjoon/python/2753.py @@ -0,0 +1,2 @@ +y = int(input()) +print(+(y%400==0 or (y%4==0 and y%100!=0))) \ No newline at end of file diff --git a/Baekjoon/python/9498.py b/Baekjoon/python/9498.py new file mode 100644 index 0000000..df0db4e --- /dev/null +++ b/Baekjoon/python/9498.py @@ -0,0 +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]) \ No newline at end of file