結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2020-12-15 10:46:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 1,491 ms |
コンパイル使用メモリ | 165,220 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-20 01:32:21 |
合計ジャッジ時間 | 2,189 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n, h, m, t; cin >> n >> h >> m >> t; int sum = (n - 1) * t + m; int ans1 = (h + sum / 60) % 24; int ans2 = sum % 60; cout << ans1 << '\n' << ans2 << '\n'; return 0; }