結果

問題 No.296 n度寝
ユーザー ruase_
提出日時 2025-08-15 11:28:56
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 99,336 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-08-15 11:28:58
合計ジャッジ時間 2,000 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

# include <iostream>
# include <iomanip>
# include <algorithm>

using namespace std;


int main() {
    int n, h, m, t;
    cin >> n >> h >> m >> t;

    int minute = (n-1) * t;
    int hour = minute / 60;
    minute = minute % 60;

    h = (h + hour) % 24;
    m = (m + minute) % 60;

    cout << h+1 << endl;
    cout << m << endl;
}
0