結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2018-09-30 00:26:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 472 ms |
コンパイル使用メモリ | 63,560 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 08:55:29 |
合計ジャッジ時間 | 1,106 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream> #include <string> using namespace std; static void setup() { cin.tie(0); ios::sync_with_stdio(false); } static void run() { int n, h, m, t; cin >> n >> h >> m >> t; const auto am = t * (n - 1); const auto ah = (m + am) / 60; h = (h + ah) % 24; m = (m + am) % 60; cout << h << endl << m << endl ; } int main(int argc, char **argv) { setup(); run(); return 0; }