-
Codeforces Round #432 (Div. 2, based on IndiaHacks Final Round 2017) - A. Arpa and a research in Mexican wave코드포스(CodeForce) 2018. 8. 17. 17:30반응형
1. 문제
2. 알고리즘
키워드 - 구현
3. 코드
123456789101112131415161718192021222324252627282930#include <cstdio>#include <cmath>#include <queue>#include <cstring>#include <cmath>#include <string>#include <iostream>#include <algorithm>#include <math.h>using namespace std;int main(){int n, k, t;cin >> n >> k >> t;int sol = 0;if (k >= t) {sol = t;}else if(n >= t) {sol = k;}else if(n <t ) {sol = k - (t - n);}cout << sol << endl;return 0;}cs 반응형'코드포스(CodeForce)' 카테고리의 다른 글
Codeforces Round #465 (Div. 2) - A. Fafa and his Company (0) 2018.08.17 Codeforces Round #451 (Div. 2) - A. Rounding (0) 2018.08.17 Codeforces Round #453 (Div. 2) - A. Visiting a Friend (0) 2018.08.17 Codeforces Round #246 (Div. 2) - A. Choosing Teams (0) 2018.08.17 Codeforces Round #446 (Div. 2) - A. Greed (0) 2018.08.17