結果
| 問題 |
No.652 E869120 and TimeZone
|
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2018-02-24 15:18:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 391 bytes |
| コンパイル時間 | 880 ms |
| コンパイル使用メモリ | 74,460 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 12:21:33 |
| 合計ジャッジ時間 | 1,679 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 30 |
ソースコード
#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 + 24 * 60 + 0.5);
a += b / 60; b %= 60;
a %= 24;
printf("%02d:%02d\n", a, b);
return 0;
}
merom686