結果
| 問題 | No.652 E869120 and TimeZone | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-02-24 00:13:27 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 324 bytes | 
| コンパイル時間 | 604 ms | 
| コンパイル使用メモリ | 68,308 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-17 13:36:37 | 
| 合計ジャッジ時間 | 1,525 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 29 WA * 1 | 
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstdlib>
#include <cstdio>
using namespace std; 
int main() {
  int a, b;
  string s;
  cin >> a >> b >> s;
  int x = (a + 24) * 60 + b;
  x += (int)(atof(s.data() + 3) * 60) - 9 * 60;
  printf("%02d:%02d\n", x / 60 % 24, x % 60);
}
            
            
            
        