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