結果

問題 No.296 n度寝
ユーザー gunmaken
提出日時 2017-11-03 16:03:40
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-22 15:27:45
合計ジャッジ時間 908 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
/*
int compare(const void *a,const void *b){
    return *(int*)a - *(int*)b;
}
*/
int main(void)
{
    long int n,h,m,t;
    scanf("%ld%ld%ld%ld",&n,&h,&m,&t);
    m = m + t * (n-1);
    if (m >= 60) {
        m = m % 60;
        h = h + m / 60;
        if (h >= 24) {
            h = h % 24;
        }
    }
    printf("%ld\n%ld\n",h,m);
    return 0;
}
0