結果
問題 | No.652 E869120 and TimeZone |
ユーザー |
|
提出日時 | 2022-10-09 15:41:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 1,941 ms |
コンパイル使用メモリ | 194,684 KB |
最終ジャッジ日時 | 2025-02-08 00:44:02 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 30 |
ソースコード
#include <bits/stdc++.h>#define rep(i,n) for(int i = 0; i < (n); i++)using namespace std;typedef long long ll;int main(){cin.tie(0);ios::sync_with_stdio(0);int a,b; cin >> a >> b;char c; cin >> c >> c >> c;double d; cin >> d; d -= 9;int x = a * 60 + b + (int)round(d * 60.0);x = (x % (24 * 60) + 24 * 60) % (24 * 60);tie(a, b) = make_pair((x / 60) % 24, x % 60);printf("%02d:%02d\n", a, b);}