結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-03 15:07:19 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 381µs | |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 1,003 ms |
| コンパイル使用メモリ | 180,260 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-09-28 05:31:08 |
| 合計ジャッジ時間 | 2,237 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<bits/stdc++.h>
#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)
using namespace std;
int main(){
int n,h,m,t; scanf("%d%d%d%d",&n,&h,&m,&t);
m += (n-1)*t;
printf("%d\n%d",(h+m/60)%24,m%60);
}