結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
beet
|
| 提出日時 | 2017-06-09 22:25:57 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 381µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 808 ms |
| コンパイル使用メモリ | 175,492 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-02 13:32:59 |
| 合計ジャッジ時間 | 2,432 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;
//cout<<s.substr(0,2)<<" "<<s.substr(3,2)<<endl;
int h=stoll(s.substr(0,2));
int m=stoll(s.substr(3,2));
m+=5;
if(m>=60) m-=60,h++;
if(h==24) h=0;
printf("%02d:%02d\n",h,m);
return 0;
}
beet