結果

問題 No.296 n度寝
ユーザー marimom7
提出日時 2015-11-06 22:24:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 54,452 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 13:16:16
合計ジャッジ時間 1,094 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(void){
	
	int N,H,M,T;
	int time = 0;

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

	time = H*60+M;

	time = time+(N-1)*T;

	cout << (int)(time/60) << endl;
	cout << time%60 << endl;

    return 0;
}
0