結果

問題 No.652 E869120 and TimeZone
ユーザー ninoinui
提出日時 2020-02-19 10:29:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 1,632 ms
コンパイル使用メモリ 166,812 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-07 19:55:43
合計ジャッジ時間 2,587 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 WA * 1
other AC * 19 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#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)) + 1e-2) * 60;
  mktime(&t);
  printf("%02d:%02d", t.tm_hour, t.tm_min);
}
0