結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2018-02-23 22:30:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| 記録 | |
| コンパイル時間 | 824 ms |
| コンパイル使用メモリ | 73,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-17 13:15:08 |
| 合計ジャッジ時間 | 1,700 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 19 WA * 11 |
ソースコード
#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)(atof(s.substr(3).c_str()) * 60);
a += b / 60; b %= 60;
a %= 24;
printf("%02d:%02d\n", a, b);
return 0;
}
merom686