結果
| 問題 | 
                            No.296 n度寝
                             | 
                    
| コンテスト | |
| ユーザー | 
                             daradara_sanma
                         | 
                    
| 提出日時 | 2017-07-11 15:35:32 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 252 bytes | 
| コンパイル時間 | 567 ms | 
| コンパイル使用メモリ | 55,432 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-07 15:00:49 | 
| 合計ジャッジ時間 | 1,308 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 6 | 
ソースコード
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main() {
	int n, h, m, t;
	cin >> n >> h >> m >> t;
	t = t * (n - 1);
	h = (h + t / 60) % 24;
	m = (m + t % 60) % 60;
	cout << h << endl;
	cout << m << endl;
	return 0;
}
            
            
            
        
            
daradara_sanma