結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2020-04-02 15:18:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 389 bytes |
コンパイル時間 | 1,602 ms |
コンパイル使用メモリ | 166,444 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 15:03:29 |
合計ジャッジ時間 | 2,644 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll=long long; int main(){ string s; cin>>s; string s1=s.substr(0,2),s2=s.substr(3,2); int x1=stoi(s1),x2=stoi(s2); if(x2>=55){ x1++; x2-=55; if(x1==24){ x1=0; } } else{ x2+=5; } printf("%02d:%02d",x1,x2); }