結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2017-06-12 13:26:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 388 ms |
コンパイル使用メモリ | 55,836 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 16:43:29 |
合計ジャッジ時間 | 1,306 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }