結果

問題 No.525 二度寝の季節
ユーザー ふっぴーふっぴー
提出日時 2017-06-10 17:32:23
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 880 bytes
コンパイル時間 1,453 ms
コンパイル使用メモリ 173,452 KB
実行使用メモリ 4,520 KB
最終ジャッジ日時 2023-10-24 20:32:16
合計ジャッジ時間 2,713 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,520 KB
testcase_01 AC 2 ms
4,520 KB
testcase_02 AC 2 ms
4,520 KB
testcase_03 AC 2 ms
4,520 KB
testcase_04 AC 2 ms
4,520 KB
testcase_05 AC 2 ms
4,520 KB
testcase_06 AC 2 ms
4,520 KB
testcase_07 AC 2 ms
4,520 KB
testcase_08 AC 2 ms
4,520 KB
testcase_09 AC 3 ms
4,520 KB
testcase_10 AC 3 ms
4,520 KB
testcase_11 AC 2 ms
4,520 KB
testcase_12 AC 2 ms
4,520 KB
testcase_13 AC 2 ms
4,520 KB
testcase_14 AC 2 ms
4,520 KB
testcase_15 AC 3 ms
4,520 KB
testcase_16 AC 2 ms
4,520 KB
testcase_17 AC 2 ms
4,460 KB
testcase_18 AC 2 ms
4,460 KB
testcase_19 AC 2 ms
4,460 KB
testcase_20 AC 2 ms
4,460 KB
testcase_21 AC 2 ms
4,460 KB
testcase_22 AC 3 ms
4,460 KB
testcase_23 AC 2 ms
4,460 KB
testcase_24 AC 2 ms
4,520 KB
testcase_25 AC 2 ms
4,460 KB
testcase_26 AC 3 ms
4,460 KB
testcase_27 AC 2 ms
4,520 KB
testcase_28 AC 2 ms
4,460 KB
testcase_29 AC 2 ms
4,460 KB
testcase_30 AC 3 ms
4,460 KB
testcase_31 AC 2 ms
4,460 KB
testcase_32 AC 3 ms
4,520 KB
testcase_33 AC 2 ms
4,520 KB
testcase_34 AC 2 ms
4,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define loop(i,a,b) for(i=a;i<b;i++)
#define rloop(i,a,b) for(i=a;i>=b;i--)
#define vi vector<int>
#define vl vector<ll>
#define vii vector< vector<int> >
#define vll vector< vector<ll> >
#define vs vector<string>
#define pii pair<int,int>
#define psi pair<string,int>
#define pis pair<int,string>
#define pss pair<string,string>
const int inf=1000000001;
const ll INF=1e16;
#define MOD 1000000007
#define mod 1000000009
#define pi 3.14159265358979323846
#define Sp(p) cout<<setprecision(15)<<fixed<<p<<endl;
#define N 30
#define T 4001
int n,t;
vi l(N);
vector<psi> sub(N);
vi rank(N,0);
vii ans(T,vi(N,0));


int main(){
  string t;
  cin>>t;
  int h=(t[0]-'0')*10+t[1]-'0';
  int m=(t[3]-'0')*10+t[4]-'0';
  m+=5;
  if(m>=60){
    m-=60;
    h++;
  }
  if(h>=24){
    h-=24;
  }
  printf("%02d:%02d\n",h,m);
}
0