From 55bec1551049f758c6fc7ae229652eddb016d9c0 Mon Sep 17 00:00:00 2001 From: songyc debian Date: Sat, 17 May 2025 20:16:21 +0900 Subject: [PATCH] 20250517 baekjoon --- code_study/Baekjoon/c/10950.c | 10 ++++++++++ code_study/Baekjoon/c/10951.c | 6 ++++++ code_study/Baekjoon/c/10952.c | 11 +++++++++++ code_study/Baekjoon/c/11021.c | 10 ++++++++++ code_study/Baekjoon/c/11022.c | 10 ++++++++++ code_study/Baekjoon/c/15552.c | 11 +++++++++++ code_study/Baekjoon/c/2438.c | 13 +++++++++++++ code_study/Baekjoon/c/2439.c | 12 ++++++++++++ code_study/Baekjoon/c/25304.c | 12 ++++++++++++ code_study/Baekjoon/c/25314.c | 7 +++++++ code_study/Baekjoon/c/2739.c | 7 +++++++ code_study/Baekjoon/c/8393.c | 7 +++++++ 12 files changed, 116 insertions(+) create mode 100644 code_study/Baekjoon/c/10950.c create mode 100644 code_study/Baekjoon/c/10951.c create mode 100644 code_study/Baekjoon/c/10952.c create mode 100644 code_study/Baekjoon/c/11021.c create mode 100644 code_study/Baekjoon/c/11022.c create mode 100644 code_study/Baekjoon/c/15552.c create mode 100644 code_study/Baekjoon/c/2438.c create mode 100644 code_study/Baekjoon/c/2439.c create mode 100644 code_study/Baekjoon/c/25304.c create mode 100644 code_study/Baekjoon/c/25314.c create mode 100644 code_study/Baekjoon/c/2739.c create mode 100644 code_study/Baekjoon/c/8393.c diff --git a/code_study/Baekjoon/c/10950.c b/code_study/Baekjoon/c/10950.c new file mode 100644 index 0000000..9d33603 --- /dev/null +++ b/code_study/Baekjoon/c/10950.c @@ -0,0 +1,10 @@ +#include +int main(){ + int n, a, b; + scanf("%d",&n); + for(int i=0; i +int main(){ + int a,b; + while(scanf("%d %d",&a,&b) != EOF) printf("%d\n",a+b); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/10952.c b/code_study/Baekjoon/c/10952.c new file mode 100644 index 0000000..d9b7f54 --- /dev/null +++ b/code_study/Baekjoon/c/10952.c @@ -0,0 +1,11 @@ +#include +int main(){ + int a,b; + + while(1){ + scanf("%d %d",&a,&b); + if(a==b&&a==0) break; + printf("%d\n",a+b); + } + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/11021.c b/code_study/Baekjoon/c/11021.c new file mode 100644 index 0000000..c038d06 --- /dev/null +++ b/code_study/Baekjoon/c/11021.c @@ -0,0 +1,10 @@ +#include +int main(){ + int n, a, b; + scanf("%d",&n); + for(int i=1; i<=n; i++){ + scanf("%d %d",&a, &b); + printf("Case #%d: %d\n",i,a+b); + } + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/11022.c b/code_study/Baekjoon/c/11022.c new file mode 100644 index 0000000..223c153 --- /dev/null +++ b/code_study/Baekjoon/c/11022.c @@ -0,0 +1,10 @@ +#include +int main(){ + int n, a, b; + scanf("%d",&n); + for(int i=1; i<=n; i++){ + scanf("%d %d",&a, &b); + printf("Case #%d: %d + %d = %d\n",i,a,b,a+b); + } + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/15552.c b/code_study/Baekjoon/c/15552.c new file mode 100644 index 0000000..b64a424 --- /dev/null +++ b/code_study/Baekjoon/c/15552.c @@ -0,0 +1,11 @@ +#include +int main(){ + int t, a, b; + scanf("%d",&t); + for(int i=0; i +int main(){ + int n; + scanf("%d",&n); + + for(int i=1; i<=n; i++){ + for(int j=0; j +int main(){ + int n; + scanf("%d",&n); + + for(int i=1; i<=n; i++){ + for(int j=0; j +int main(){ + int x,n,a,b; + int s=0; + scanf("%d\n%d",&x,&n); + for(int i=0;i +int main(){ + int n; + scanf("%d",&n); + for(int i=0; i<(n/4); i++) printf("%s","long "); + printf("%s","int"); +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/2739.c b/code_study/Baekjoon/c/2739.c new file mode 100644 index 0000000..5f2a07a --- /dev/null +++ b/code_study/Baekjoon/c/2739.c @@ -0,0 +1,7 @@ +#include +int main(){ + int n; + scanf("%d",&n); + for(int i=1; i<=9; i++) printf("%d * %d = %d\n",n,i,n*i); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/8393.c b/code_study/Baekjoon/c/8393.c new file mode 100644 index 0000000..58f8d27 --- /dev/null +++ b/code_study/Baekjoon/c/8393.c @@ -0,0 +1,7 @@ +#include +int main(){ + int n; + scanf("%d",&n); + printf("%d",n*(n+1)/2); + return 0; +} \ No newline at end of file