結果

問題 No.296 n度寝
ユーザー nyan68682154
提出日時 2019-05-15 06:36:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 272 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 57,912 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 11:53:33
合計ジャッジ時間 1,352 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<math.h>
#include<stdlib.h>
using namespace std;

int main() {
	int n, h, m, t,sumtime,summinutes;
	cin >> n >> h >> m >> t;
	sumtime = h * 60 + m + t * (n-1);
	cout << sumtime / 60%24;
	cout << "\n";
	cout << sumtime % 60;
	
}
0