結果
| 問題 | No.652 E869120 and TimeZone | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-29 22:35:15 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 340 bytes | 
| コンパイル時間 | 494 ms | 
| コンパイル使用メモリ | 64,128 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-27 23:42:20 | 
| 合計ジャッジ時間 | 1,493 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 2 | 
| other | AC * 19 WA * 11 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
    int a, b;
    double utc;
    scanf("%d %d UTC%lf", &a, &b, &utc);
    utc = utc - 9.0;
    int now = a*60 + b;
    now += utc*60;
    now %= (60*24);
    a = now/60;
    b = now - 60*a;
    cout << (a < 10 ? "0" : "") << a << ":" << (b < 10 ? "0" : "") << b << endl;
    return 0;
}
            
            
            
        