結果
問題 |
No.652 E869120 and TimeZone
|
ユーザー |
![]() |
提出日時 | 2020-02-19 10:37:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 1,528 ms |
コンパイル使用メモリ | 167,472 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-07 20:27:58 |
合計ジャッジ時間 | 2,603 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 28 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; string S; cin >> a >> b >> S; double D = stod(S.substr(3)); D += (D > 0) ? 1e-10 : -1e-10; struct tm t = {}; t.tm_hour = a - 9; t.tm_min = b + D * 60; mktime(&t); printf("%02d:%02d", t.tm_hour, t.tm_min); }