結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-04-03 09:07:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 2,411 ms |
| コンパイル使用メモリ | 191,068 KB |
| 最終ジャッジ日時 | 2025-01-20 10:21:43 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
int n,h,m,t,temp;
cin>>n>>h>>m>>t;
temp=(h*60+m+t*(n-1))%1440;
h=temp/60;
m=temp%60;
cout<<h<<endl;
cout<<m<<endl;
return 0;
}
chacoder1