結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2015-11-06 22:55:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 79,836 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 22:23:31 |
合計ジャッジ時間 | 1,094 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
using namespace std; #include <algorithm> #include <iostream> #include <random> #include <string> #include <fstream> #include <vector> #include <climits> typedef long long ll; ll INF = LLONG_MAX; int main() { ll N, H, M, T; cin >> N >> H >> M >> T; ll x = H * 60 + M + (N - 1) * T; x %= 24 * 60; cout << x / 60 << endl; cout << x % 60 << endl; }