結果

問題 No.296 n度寝
ユーザー たつお
提出日時 2023-09-27 09:15:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 209 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 63,840 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 03:23:19
合計ジャッジ時間 1,339 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
//input
	int N,H,M,T;
	cin >> N >> H >> M >> T;
//calc
	int at = H * 60 + M + T * (N - 1);
//output
	cout << at / 60 % 24 << endl << at % 60 << endl;
}
0