結果

問題 No.296 n度寝
ユーザー Maeda
提出日時 2025-03-07 14:34:46
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 432 bytes
コンパイル時間 364 ms
コンパイル使用メモリ 24,576 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2025-03-07 14:34:47
合計ジャッジ時間 1,128 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

void main(void){
	//n度寝の回数
	int n = 0;
	int input = scanf("%d",&n);
	//最初の目覚まし時計の時間(h:m)
	int h = 0;
	input = scanf("%d",&h);
	int m = 0;
	input = scanf("%d",&m);
	//先に時間を分に直しておく
	int firstTime = h*60 + m;
	//アラームの感覚
	int t = 0;
	input = scanf("%d",&t);
	
	firstTime = n*t + firstTime;
	printf("%d\n%d\n",firstTime/60,firstTime%60);
}
0