[알고리즘] 백준 13623 - Zero or One (C++) [문제 링크] : https://www.acmicpc.net/problem/13623#include using namespace std;int A, B, C;int main(){ cin >> A >> B >> C; if(A == B && B == C){ cout 알고리즘 2025.06.24
[알고리즘] 백준 28214 - 크림빵 (C++) [문제 링크] : https://www.acmicpc.net/problem/28214#include #include using namespace std;int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int N, K, P; cin >> N >> K >> P; vector V(N * K); for(int i=0; i> V[i]; } int Ans = 0; for(int i=0; i 알고리즘 2025.06.23
[알고리즘] 백준 5300 - Fill the Rowboats! (C++) [문제 링크] : https://www.acmicpc.net/problem/5300#include using namespace std;int main(){ int N; cin >> N; for(int i=1; i 알고리즘 2025.06.22
[알고리즘] 백준 15813 - 너의 이름은 몇 점이니? (C++) [문제 링크] : https://www.acmicpc.net/problem/15813#include #include using namespace std;int main(){ int N, sum = 0, tmp; string S; cin >> N >> S; for(int i=0; i 알고리즘 2025.06.21
[알고리즘] 백준 31606 - 果物 (Fruit) (C++) [문제 링크] : https://www.acmicpc.net/problem/31606#include using namespace std;int main(){ int X, Y; cin >> X >> Y; cout 알고리즘 2025.06.20
[알고리즘] 백준 17874 - Piece of Cake! (C++) [문제 링크] : https://www.acmicpc.net/problem/17874#include using namespace std;int L, D, V, Ans;int W[2];int H[2];int main(){ cin >> L >> D >> V; W[0] = V, W[1] = L - V; H[0] = D, H[1] = L - D; for(int i=0; i 알고리즘 2025.06.19
[알고리즘] 백준 13311 - 행운의 편지 (C++) [문제 링크] : https://www.acmicpc.net/problem/13311#include using namespace std;int main(){ cout 알고리즘 2025.06.18
[알고리즘] 백준 10480 - Oddities (C++) [문제 링크] : https://www.acmicpc.net/problem/10480#include using namespace std;int main(){ int N, inp; cin >> N; while(N--){ cin >> inp; if(inp % 2 == 0){ cout 알고리즘 2025.06.17
[알고리즘] 백준 29790 - 임스의 메이플컵 (C++) [문제 링크] : https://www.acmicpc.net/problem/29790#include using namespace std;int main(){ int N, M, L; cin >> N >> M >> L; if(N >= 1000 && (M >= 8000 || L >= 260)){ cout = 1000){ cout 알고리즘 2025.06.16
[알고리즘] 백준 32929 - UOS 문자열 (C++) [문제 링크] : https://www.acmicpc.net/problem/32929#include using namespace std;int main(){ int N; cin >> N; N--; if(N % 3 == 0){ cout 알고리즘 2025.06.15