結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-08-14 23:13:53 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 339µs | |
| コード長 | 348 bytes |
| 記録 | |
| コンパイル時間 | 1,940 ms |
| コンパイル使用メモリ | 330,436 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-09-07 14:01:56 |
| 合計ジャッジ時間 | 3,851 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
string S;
cin>>S;
int now = ((S[0]-'0')*10+(S[1]-'0'))*60+((S[3]-'0')*10+(S[4]-'0'));
now += 5;
now %= 1440;
int a = now/60;
int b = now%60;
if(a < 10) cout<<'0'<<a<<':';
else cout<<a<<':';
if(b < 10) cout<<'0'<<b<<endl;
else cout<<b<<endl;
}
keisuke6