結果
問題 | No.651 E869120 and Driving |
ユーザー | kazuki95810 |
提出日時 | 2020-05-14 06:25:23 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 666 bytes |
コンパイル時間 | 1,657 ms |
コンパイル使用メモリ | 164,640 KB |
実行使用メモリ | 4,352 KB |
最終ジャッジ日時 | 2023-10-12 19:35:39 |
合計ジャッジ時間 | 2,029 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 1 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,352 KB |
testcase_04 | AC | 1 ms
4,348 KB |
testcase_05 | AC | 1 ms
4,348 KB |
testcase_06 | AC | 1 ms
4,352 KB |
testcase_07 | AC | 2 ms
4,352 KB |
testcase_08 | AC | 1 ms
4,352 KB |
testcase_09 | AC | 1 ms
4,348 KB |
ソースコード
#include <bits/stdc++.h> #define ALL(a) (a).begin(), (a).end() #define RALL(a) (a).rbegin(), (a).rend() #define pb push_back #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) #define ll long long using namespace std; const ll P = 1000000007; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a / gcd(a, b) * b; } int main() { cout << fixed << setprecision(10); int N; cin >> N; cout << N/100+10 ; cout << ":" ; if(N%100*3/5>10){ cout << N%100*3/5 ; } else if(N%100*3/5==6) { cout << "06" ; } else if(N%100*3/5==0) { cout << "00"; } return 0; }