結果

問題 No.525 二度寝の季節
ユーザー keisuke6
提出日時 2022-08-14 23:13:53
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 348 bytes
コンパイル時間 3,035 ms
コンパイル使用メモリ 244,804 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-01 14:16:58
合計ジャッジ時間 4,272 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  string S;
  cin>>S;
  int now = ((S[0]-'0')*10+(S[1]-'0'))*60+((S[3]-'0')*10+(S[4]-'0'));
  now += 5;
  now %= 1440;
  int a = now/60;
  int b = now%60;
  if(a < 10) cout<<'0'<<a<<':';
  else cout<<a<<':';
  if(b < 10) cout<<'0'<<b<<endl;
  else cout<<b<<endl;
}
0