結果

問題 No.296 n度寝
ユーザー Hissha_
提出日時 2018-04-02 09:52:13
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 27,776 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 06:31:35
合計ジャッジ時間 732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
	// your code goes here
	int n, h, m, t;
	int wh, wm;
	
	scanf("%d %d %d %d", &n,&h,&m,&t);
	
	wh=(h+(m+(n-1)*t)/60)%24;
	wm=(m+(n-1)*t)%60;
	printf("%d\n",wh);
	printf("%d\n",wm);
	
	return 0;
}
0