algorithm
더블릿|dovelet - 2번째 계단 - 지하 차도/truck
블루건
2016. 7. 22. 21:50
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <iostream> using namespace std; int main() { const int limit = 168; int a, b, c; cin >> a >> b >> c; if (a < limit) cout << "CRASH " << a; else if (b < limit) cout << "CRASH " << b; else if (c < limit) cout << "CRASH " << c; else cout << "NO CRASH"; return 0; } | cs |