結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-06-02 00:55:15 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 455 bytes | 
| コンパイル時間 | 671 ms | 
| コンパイル使用メモリ | 72,628 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-21 01:52:08 | 
| 合計ジャッジ時間 | 1,264 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#define rep(i,n) for(i=0; i<n; ++i)
#define in(a) cin >> a
#define out(a,b) cout << a << b
using namespace std;
using lint = long long;
int main(void){
    int i, j, n, m, k, cnt = 0;
    int h, t;
    in(n);
    in(h);
    in(m);
    in(t);
    int init = h*60+m;
    int tot = init+(n-1)*t;
    out((tot/60)%24,endl);
    out(tot%60,endl);
    return 0;
}
            
            
            
        