結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
ruru
|
| 提出日時 | 2017-06-12 13:26:33 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 426µs | |
| コード長 | 277 bytes |
| 記録 | |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 69,348 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-03 08:30:16 |
| 合計ジャッジ時間 | 1,964 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
7 | main(){
| ^~~~
ソースコード
#include <iostream>
#include<string>
using namespace std;
main(){
int h,m;
char f;
cin >> h >> f >>m;
if(m<55){
m=m+5;
}else {
m=m-55;
if(h!=23)
h++;
else
h=0;
}
cout<<h/10<<h%10<<":"<<m/10<<m%10<<endl;
return 0;
}
ruru