2557
https://www.acmicpc.net/problem/2557
#include <iostream>
using namespace std;
int main(void) {
cout << "Hello World!";
return 0;
}
1000
https://www.acmicpc.net/problem/1000
#include <iostream>
using namespace std;
int main(void) {
int a,b;
cin >> a >> b;
cout << a+b;
return 0;
}
1001
https://www.acmicpc.net/problem/1001
#include <iostream>
using namespace std;
int main(void) {
int a,b;
cin >> a >> b;
cout << a-b;
return 0;
}
10998
https://www.acmicpc.net/problem/10998
#include <iostream>
using namespace std;
int main(void) {
int a,b;
cin >> a >> b;
cout << a*b;
}
1008
https://www.acmicpc.net/problem/1008
#include <iostream>
using namespace std;
int main(void) {
double a,b;
cin >> a >> b;
cout << fixed;
cout.precision(9);
cout << a/b << "\n";
return 0;
}
10869
https://www.acmicpc.net/problem/10869
#include <iostream>
using namespace std;
int main(void) {
int a,b;
cin >> a >> b;
cout << a+b << "\n";
cout << a-b << "\n";
cout << a*b << "\n";
cout << a/b << "\n";
cout << a%b;
return 0;
}
10926
https://www.acmicpc.net/problem/10926
#include<iostream>
using namespace std;
int main(void) {
string id;
cin >> id;
cout << id << "??!";
return 0;
}
18108
https://www.acmicpc.net/problem/18108
#include<iostream>
using namespace std;
int main(void) {
int y;
cin >> y;
cout << y-543;
return 0;
}
10430
https://www.acmicpc.net/problem/10430
#include<iostream>
using namespace std;
int main(void) {
int a,b,c;
cin >> a >> b >> c;
cout << (a+b)%c << "\n";
cout << ((a%c) +(b%c))%c << "\n";
cout << (a*b)%c << "\n";
cout << ((a%c)*(b%c))%c;
return 0;
}
11382
https://www.acmicpc.net/problem/11382
#include<iostream>
using namespace std;
int main(void) {
long long a,b,c;
cin >> a >> b >> c;
cout << a+b+c;
return 0;
}
'Algorithm > BOJ' 카테고리의 다른 글
[백준/C++17] 5622 다이얼 (2) | 2024.11.06 |
---|---|
[백준/C++17] 2908 상수 (0) | 2024.11.06 |
[백준/Python] 1141 접두사 (0) | 2024.08.26 |
[백준/Python] 11047 동전 0 (0) | 2024.08.18 |
[백준/Python] 17219 비밀번호 찾기 (0) | 2024.08.18 |