結果
| 問題 | No.652 E869120 and TimeZone | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-08-20 00:15:31 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 345 bytes | 
| コンパイル時間 | 2,174 ms | 
| コンパイル使用メモリ | 191,908 KB | 
| 最終ジャッジ日時 | 2025-01-07 14:18:26 | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 3 | 
| other | AC * 2 WA * 28 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
    int h,m;
    string s;
    cin>>h>>m>>s;
    int t=60*h+m-540;
    int tt=60*(s[4]-'0');
    if (s[s.size()-2]=='.') tt+=6*(s[s.size()-2]-'0');
    if (s[3]=='-') tt=-tt;
    t+=tt;
    t=(t+24*60)%(24*60);
    printf("%02d:%02d\n",t/60,t%60);
    return 0;
}
            
            
            
        