結果

問題 No.296 n度寝
ユーザー CELICA
提出日時 2020-06-28 16:29:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 256 bytes
コンパイル時間 1,387 ms
コンパイル使用メモリ 164,804 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-07 20:07:39
合計ジャッジ時間 2,047 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#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)%60;
    h=(h+(m+tt)/60)%24;
    printf("%lld\n%lld\n",h,mm);
    return 0;
}
0