結果

問題 No.296 n度寝
ユーザー oooooba
提出日時 2021-01-10 14:51:56
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 349 bytes
コンパイル時間 724 ms
コンパイル使用メモリ 74,184 KB
最終ジャッジ日時 2025-01-17 15:56:28
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <vector>

using namespace std;

int main() {
    int32_t n, h, m, t;
    cin >> n >> h >> m >> t;
    int32_t c = h * 60 + m;
    c += (n - 1) * t;
    cout << c / 60 % 24 << endl;
    cout << c % 60 << endl;
    return 0;
}
0