結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2020-06-28 16:22:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 257 bytes |
コンパイル時間 | 1,316 ms |
コンパイル使用メモリ | 165,640 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 19:58:01 |
合計ジャッジ時間 | 2,047 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 16 |
ソースコード
#include <bits/stdc++.h> using ll = long long; using namespace std; int main() { ll n,h,m,t,tt,mm; scanf("%lld%lld%lld%lld",&n,&h,&m,&t); tt=t*(n-1); mm=(m+tt)%1440; h=(h+(m+tt)/60)%24; printf("%lld %lld\n",h,mm); return 0; }