[알고리즘] 백준 10823 - 더하기 2 (C++) [문제 링크] : https://www.acmicpc.net/problem/10823#include #include using namespace std;int main(){ string S, M; int Ans = 0; while(getline(cin, S)){ for(int i=0; i 알고리즘 2025.04.18
[알고리즘] 백준 28295 - 체육은 코딩과목 입니다 (C++) [문제 링크] : https://www.acmicpc.net/problem/28295#include using namespace std;int main(){ int N, D = 0; for(int i=0; i> N; if(N == 1){ D = (D + 1) % 4; } else if(N == 2){ D = (D + 2) % 4; } else if(N == 3){ D = (D + 3) % 4; } } if(D == 0){ cout 알고리즘 2025.04.17
[알고리즘] 백준 26575 - Pups (C++) [문제 링크] : https://www.acmicpc.net/problem/26575#include using namespace std;int main(){ int N; double A, B, C; cin >> N; cout > A >> B >> C; double Ans = A * B * C; cout 알고리즘 2025.04.16
[알고리즘] 백준 2712 - 미국 스타일 (C++) [문제 링크] : https://www.acmicpc.net/problem/2712#include using namespace std;double T, W;string S;double solve(){ if(S == "kg"){ S = "lb"; return W * 2.2046; } if(S == "lb"){ S = "kg"; return W * 0.4536; } if(S == "l"){ S = "g"; return W * 0.2642; } S = "l"; return W * 3.7854;}int main(){ cin >> T; cout > W >> S; .. 알고리즘 2025.04.15
[알고리즘] 백준 15610 - Abbey Courtyard (C++) [문제 링크] : https://www.acmicpc.net/problem/15610#include #include using namespace std;double N;int main(){ cin >> N; cout 알고리즘 2025.04.14
[알고리즘] 백준 16017 - Telemarketer or not? (C++) [문제 링크] : https://www.acmicpc.net/problem/16017#include using namespace std;int number[4];bool flag = true;int main(){ for(int i=0; i> number[i]; if((i == 0 || i == 3) && !(8 = number[i])){ flag = false; } if(i == 2 && number[i] != number[i-1]){ flag = false; } } cout 알고리즘 2025.04.13
[알고리즘] 백준 18411 - 試験 (Exam) (C++) [문제 링크] : https://www.acmicpc.net/problem/18411#include #include using namespace std;int Arr[3];int main(){ for(int i=0; i> Arr[i]; } sort(Arr, Arr + 3); cout 알고리즘 2025.04.12
[알고리즘] 백준 25625 - 샤틀버스 (C++) [문제 링크] : https://www.acmicpc.net/problem/25625#include using namespace std;int A, B;int main(){ cin >> A >> B; if(A > B){ cout 알고리즘 2025.04.11
[알고리즘] 백준 14264 - 정육각형과 삼각형 (C++) [문제 링크] : https://www.acmicpc.net/problem/14264#include #include using namespace std;int main(){ double D; cin >> D; cout 알고리즘 2025.04.10
[알고리즘] 백준 10173 - 니모를 찾아서 (C++) [문제 링크] : https://www.acmicpc.net/problem/10173#include #include #include using namespace std;int main(){ string S; while(true){ getline(cin, S); if(S == "EOI"){ break; } bool flag = 0; transform(S.begin(), S.end(), S.begin(), ::tolower); if(S.length() > 3){ for(int i=0; i 알고리즘 2025.04.09