結果
問題 | No.651 E869120 and Driving |
ユーザー | Liesegang |
提出日時 | 2018-02-23 22:32:16 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 846 bytes |
コンパイル時間 | 1,149 ms |
コンパイル使用メモリ | 88,456 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-22 07:50:04 |
合計ジャッジ時間 | 1,281 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,348 KB |
testcase_04 | AC | 2 ms
4,348 KB |
testcase_05 | AC | 2 ms
4,348 KB |
testcase_06 | AC | 2 ms
4,348 KB |
testcase_07 | AC | 2 ms
4,348 KB |
testcase_08 | AC | 2 ms
4,348 KB |
testcase_09 | AC | 1 ms
4,348 KB |
ソースコード
#include <iostream> #include <cstdio> #include <bitset> #include <queue> #include <stack> #include <vector> #include <list> #include <set> #include <map> #include <utility> #include <string> #include <algorithm> #include <cmath> #include <limits> using namespace std; using ll=long long; using vint=vector<int>; using pint=pair<int,int>; const double EPS = 1e-9; const int inf = numeric_limits<int>::max(); #define rep(i,n) for(int i=0;i<int(n);++i) #define REP(i,a,b) for(int i=int(a);i<int(b);++i) #define SHOW(a) cout << #a << " = " << a << endl #define ARR(a,i,n) for(int i=0;i<int(n);++i) cout << #a << "[" << i << "]" << " = " << a[i] << endl void solve(){ int n, hh = 10, mm = 0; cin >> n; double t = n / 100.0; hh += floor(t); mm = round(60 * (t - floor(t))); printf("%02d:%02d\n", hh, mm); } int main(){ solve(); return 0; }