結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  kongarishisyamo | 
| 提出日時 | 2016-02-26 00:23:35 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 156 bytes | 
| コンパイル時間 | 340 ms | 
| コンパイル使用メモリ | 54,816 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 02:43:53 | 
| 合計ジャッジ時間 | 893 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
#include<iostream>
using namespace std;
int main(){
	int N,H,M,T;
	cin>>N>>H>>M>>T;
	cout<<(H+(M+T*(N-1))/60)%24<<endl;
	cout<<(M+T*(N-1))%60<<endl;
}
            
            
            
        