結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2020-08-02 12:18:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 1,361 ms |
コンパイル使用メモリ | 164,952 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 10:43:38 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
/** * author: boutarou * created: 02.08.2020 12:17:10 **/ #include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < int(n); i++) using ll = long long; using P = pair<int, int>; int main() { ll n, h, m, t; cin >> n >> h >> m >> t; ll ans = h * 60 + m; ans += (n - 1) * t; cout << (ans / 60) % 24 << endl << ans % 60 << endl; return 0; }