結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2015-11-14 00:41:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 68,260 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 22:28:40 |
合計ジャッジ時間 | 1,084 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <cstdio> #include <cstring> #include <vector> #include <algorithm> #include <cmath> #include <map> using namespace std; typedef long long ll; #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).begin(), (x).end(), greater<int>() ) int main() { int n, h, m, t; cin >> n >> h >> m >> t; n = (m + h * 60 + t * (n - 1)) % (60 * 24); cout << n / 60 << endl; cout << n % 60 << endl; return 0; }