[알고리즘] 백준 25377 - 빵 (C++) [문제 링크] : https://www.acmicpc.net/problem/25377#include using namespace std;int T, A, B, Ans = 1234567890;int main(){ cin >> T; while(T--){ cin >> A >> B; if(A 알고리즘 2024.11.10
[알고리즘] 백준 2783 - 삼각 김밥 (C++) [문제 링크] : https://www.acmicpc.net/problem/2783#include using namespace std;int main(){ double A, B, N, Ans; cin >> A >> B >> N; Ans = A / B; for(int i=0; i> A >> B; if(Ans > A / B){ Ans = A / B; } } cout 알고리즘 2024.11.09
[알고리즘] 백준 10829 - 이진수 변환 (C++) [문제 링크] : https://www.acmicpc.net/problem/10829#include using namespace std;void solve(long long n){ if(n == 0 || n == 1){ cout > N; solve(N); cout 알고리즘 2024.11.08
[알고리즘] 백준 10179 - 쿠폰 (C++) [문제 링크] : https://www.acmicpc.net/problem/10179#include using namespace std;int main(){ int N; double P; cin >> N; for(int i=0; i> P; cout 알고리즘 2024.11.07
[알고리즘] 백준 5523 - 경기 결과 (C++) [문제 링크] : https://www.acmicpc.net/problem/5523#include using namespace std;int main(){ int N; int a = 0, b = 0, t, s; cin >> N; for(int i=0; i> t >> s; if(t s){ a++; } } cout 알고리즘 2024.11.06
[알고리즘] 백준 23825 - SASA 모형을 만들어보자 (C++) [문제 링크] : https://www.acmicpc.net/problem/23825#include using namespace std;int main(){ int N, M; cin >> N >> M; cout 알고리즘 2024.11.05
[알고리즘] 백준 11549 - Identifying tea (C++) [문제 링크] : https://www.acmicpc.net/problem/11549#include using namespace std; int main(){ int N, inp, Ans = 0; cin >> N; for(int i=0; i> inp; if(N == inp){ Ans += 1; } } cout 알고리즘 2024.11.04
[알고리즘] 백준 29751 - 삼각형 (C++) [문제 링크] : https://www.acmicpc.net/problem/29751#include using namespace std;int main(){ double W, H; cin >> W >> H; cout 알고리즘 2024.11.03
[알고리즘] 백준 28235 - 코드마스터 2023 (C++) [문제 링크] : https://www.acmicpc.net/problem/28235#include using namespace std;int main(){ string S; cin >> S; if(S == "SONGDO"){ cout 알고리즘 2024.11.02
[알고리즘] 백준 8871 - Zadanie próbne 2 (C++) [문제 링크] : https://www.acmicpc.net/problem/8871#include using namespace std;int main(){ int N; cin >> N; cout 알고리즘 2024.11.01