結果
問題 | No.652 E869120 and TimeZone |
ユーザー | rogi52 |
提出日時 | 2022-10-09 15:41:21 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 1,852 ms |
コンパイル使用メモリ | 202,432 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 15:08:10 |
合計ジャッジ時間 | 2,890 ms |
ジャッジサーバーID (参考情報) |
judge2 / 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); }