結果
問題 |
No.652 E869120 and TimeZone
|
ユーザー |
|
提出日時 | 2018-04-29 22:39:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 557 ms |
コンパイル使用メモリ | 64,384 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 23:42:52 |
合計ジャッジ時間 | 1,537 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 28 WA * 2 |
ソースコード
#include<iostream> using namespace std; int main(){ int a, b; double utc; scanf("%d %d UTC%lf", &a, &b, &utc); utc = utc - 9.0; int now = a*60 + b; now += utc*60; while(now < 0){ now += 60*24; } now %= (60*24); a = now/60; b = now - 60*a; cout << (a < 10 ? "0" : "") << a << ":" << (b < 10 ? "0" : "") << b << endl; return 0; }