結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  @abcde | 
| 提出日時 | 2019-02-11 20:47:29 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 438 bytes | 
| コンパイル時間 | 1,413 ms | 
| コンパイル使用メモリ | 157,788 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-19 07:08:18 | 
| 合計ジャッジ時間 | 2,055 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
    
    // 1. 入力情報取得.
    LL N, H, M, T;
    cin >> N >> H >> M >> T;
    
    // 2. n度寝後の時分を計算.
    LL h = H;
    LL m = M;
    LL diff = T * (N - 1);
    h += (diff / 60);
    h %= 24;
    m += (diff % 60);
    m %= 60;
    
    // 3. 出力 ~ 後処理.
    cout << h << endl;
    cout << m << endl;
    return 0;
    
}
            
            
            
        