結果

問題 No.296 n度寝
ユーザー A63295A63295
提出日時 2015-12-18 01:09:33
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 1,697 ms
コンパイル使用メモリ 22,960 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-14 13:37:07
合計ジャッジ時間 1,341 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
4,348 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
     scanf("%d%d%d%d",&n,&h,&m,&t);
     ^~~~~
main.c:5:5: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:5:5: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:1:
+#include <stdio.h>
 int main(void){
main.c:5:5:
     scanf("%d%d%d%d",&n,&h,&m,&t);
     ^~~~~
main.c:11:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
     printf("%d\n%d\n",h,m);
     ^~~~~~
main.c:11:5: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:11:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

int main(void){
    int n, h, m, t;
    int i;
    
    scanf("%d%d%d%d",&n,&h,&m,&t);
    
m += ( n -1) * t;
h += m / 60;
m -= m / 60 * m;
h = h / 24;
    printf("%d\n%d\n",h,m);
    return 0;
}
0