結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
focus
|
| 提出日時 | 2018-01-15 19:34:50 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 250µs | |
| コード長 | 552 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 72,524 KB |
| 実行使用メモリ | 9,840 KB |
| 最終ジャッジ日時 | 2026-10-06 23:35:54 |
| 合計ジャッジ時間 | 1,987 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<cstdio>
using namespace std;
int main(){
int A,B;
scanf("%d:%d",&A,&B);
B+=5;
if(B>=60){
B-=60;
A++;
}
if(A>23){
A=0;
}
if(B>=10){
if(A>=10){
cout << A << ':' << B;
}
else{
cout << '0' << A << ':' << B;
}
}
else{
if(A>=10){
cout << A << ":0" << B;
}
else{
cout << '0' << A << ":0" << B;
}
}
return 0;
}
focus