結果
問題 |
No.652 E869120 and TimeZone
|
ユーザー |
|
提出日時 | 2018-02-24 00:28:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 902 bytes |
コンパイル時間 | 691 ms |
コンパイル使用メモリ | 90,188 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-17 13:37:49 |
合計ジャッジ時間 | 1,626 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 5 |
other | AC * 1 WA * 29 |
ソースコード
#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 a, b; double t; scanf("%d%d", &a, &b); scanf("%*3c%lf", &t); int time; time = round(a * 60 + b - 9 * 60 + 60 * t + 60 * 24); time %= 60 * 24; printf("%02d:%02d", time / 60, time % 60); } int main(){ solve(); return 0; }