結果

問題 No.296 n度寝
ユーザー a2011404a2011404
提出日時 2017-02-28 16:38:18
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 23,196 KB
実行使用メモリ 4,496 KB
最終ジャッジ日時 2023-09-02 17:37:17
合計ジャッジ時間 1,714 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 1 ms
4,376 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 1 ms
4,372 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{

int N,H,M,T;
scanf("%d%d%d%d",&N,&H,&M,&T);

int n,h,m,t;
	h=H;
	m=M+(T*(N-1));

if(m<60){
printf("%d\n",h);
printf("%d\n",m);

}else if(m>=60)
printf("%d\n",h+1);
printf("%d\n",m-60);


return 0;
}

0