結果

問題 No.296 n度寝
ユーザー silopy
提出日時 2019-06-27 22:45:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 282 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 65,652 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 15:32:25
合計ジャッジ時間 1,205 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
using namespace std;
using lint=int64_t;

int main()
{
	int N,H,M,T;

	cin >> N >> H >> M >> T;

	int time=0;
	time=H*60+M;

	for(int i=0;i<N-1;i++)
		time+=T;
	
	time%=(24*60);
	cout << time/60 << endl;
	cout << time%60 << endl;
	return 0;
}
0