Skip to content

Commit 882afe0

Browse files
committed
update README.md
1 parent 58daaf1 commit 882afe0

File tree

8 files changed

+139
-0
lines changed

8 files changed

+139
-0
lines changed

baekjoon/1000.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 1000 A+B
4+
#include <iostream>
5+
using namespace std;
6+
7+
int main(){
8+
int a, b;
9+
cin >> a >> b;
10+
cout << a+b <<'\n';
11+
return 0;
12+
}
13+

baekjoon/1001.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 1001 A-B
4+
#include <iostream>
5+
6+
int main(int argc, const char * argv[]) {
7+
8+
int a, b;
9+
std::cin >> a >> b;
10+
std::cout << a-b;
11+
12+
13+
return 0;
14+
}
15+

baekjoon/1008.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 1008 A/B
4+
#include <cstdio>
5+
int main(){
6+
7+
int a, b;
8+
9+
scanf("%d %d", &a, &b);
10+
printf("%.32f", (double)a/b); //절대/상대 오차는 10-9 까지 허용한다.
11+
12+
13+
return 0;
14+
}
15+
16+

baekjoon/10430.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 10430 나머지
4+
#include <cstdio>
5+
int main(){
6+
7+
int a, b, c;
8+
9+
scanf("%d %d %d", &a, &b, &c);
10+
printf("%d\n", (a+b)%c);
11+
printf("%d\n", (a%c + b%c)%c);
12+
printf("%d\n", (a*b)%c);
13+
printf("%d", (a%c*b%c)%c);
14+
return 0;
15+
}
16+

baekjoon/10869.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 10869 사칙연산
4+
#include <cstdio>
5+
int main(){
6+
7+
int a, b;
8+
9+
scanf("%d %d", &a, &b);
10+
printf("%d\n", a+b);
11+
printf("%d\n", a-b);
12+
printf("%d\n", a*b);
13+
printf("%d\n", a/b);
14+
printf("%d", a%b);
15+
return 0;
16+
}
17+

baekjoon/10998.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 10998 A×B
4+
#include <cstdio>
5+
int main(){
6+
7+
int a, b;
8+
scanf("%d %d", &a, &b);
9+
printf("%d", a*b);
10+
11+
12+
return 0;
13+
}
14+

baekjoon/2558.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 2558 A+B - 2
4+
#include <cstdio>
5+
int main(){
6+
7+
int a, b;
8+
scanf("%d %d", &a, &b);
9+
printf("%d", a+b);
10+
return 0;
11+
}
12+

baekjoon/2839.cpp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//
2+
// Created by 융미 on 2019-04-28.
3+
// 2839 설탕 배달
4+
#include <cstdio>
5+
int main(){
6+
7+
int input;
8+
int count = 0;
9+
scanf("%d", &input);
10+
11+
12+
while(input > 0){
13+
if(input % 5 == 0){
14+
input -=5;
15+
count++;
16+
}
17+
else if(input % 3 ==0){
18+
input -=3;
19+
count++;
20+
}
21+
else if(input > 5){
22+
input -=5;
23+
count++;
24+
}
25+
else{
26+
count = -1;
27+
break;
28+
}
29+
30+
}
31+
32+
printf("%d", count);
33+
return 0;
34+
35+
}
36+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy