結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  k82b | 
| 提出日時 | 2023-12-08 01:51:49 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 146 bytes | 
| コンパイル時間 | 205 ms | 
| コンパイル使用メモリ | 28,032 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-09-27 02:34:01 | 
| 合計ジャッジ時間 | 12,787 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 5 | 
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x;
      | ^
main.c:1:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
    2 | main(a,b,c,d)
      | ^~~~
main.c: In function 'main':
main.c:2:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:2:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:2:1: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:2:1: warning: type of 'd' defaults to 'int' [-Wimplicit-int]
main.c:4:13: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         for(scanf("%*d");~scanf("%d%d%d%d",&a,&b,&c,&d);x+=c-a)
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x;
main.c:4:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         for(scanf("%*d");~scanf("%d%d%d%d",&a,&b,&c,&d);x+=c-a)
      |             ^~~~~
main.c:4:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |         printf("%d\n",x);
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
            
            ソースコード
x;
main(a,b,c,d)
{
	for(scanf("%*d");~scanf("%d%d%d%d",&a,&b,&c,&d);x+=c-a)
	{
		a*=60,c*=60,a+=b,c+=d;
		if(a>c)c+=1440;
	}
	printf("%d\n",x);
}
            
            
            
        