結果
問題 |
No.652 E869120 and TimeZone
|
ユーザー |
![]() |
提出日時 | 2018-02-24 15:17:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 658 ms |
コンパイル使用メモリ | 74,348 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-17 13:43:28 |
合計ジャッジ時間 | 1,601 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 WA * 1 |
other | AC * 18 WA * 12 |
ソースコード
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> using namespace std; int main() { int a, b; cin >> a >> b; string s; cin >> s; a += 24 - 9; b += (int)(stod(s.substr(3)) * 60 + 0.5) + 24 * 60; a += b / 60; b %= 60; a %= 24; printf("%02d:%02d\n", a, b); return 0; }