結果
問題 | No.8021 データベースの練習 |
ユーザー | 👑 testestest |
提出日時 | 2017-04-01 00:59:01 |
言語 | C (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 437 ms / 5,000 ms |
コード長 | 185 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 27,776 KB |
実行使用メモリ | 25,360 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2024-07-16 12:44:12 |
合計ジャッジ時間 | 4,267 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 108 ms
24,848 KB |
testcase_01 | AC | 223 ms
25,360 KB |
testcase_02 | AC | 290 ms
24,976 KB |
testcase_03 | AC | 311 ms
24,848 KB |
testcase_04 | AC | 290 ms
24,976 KB |
testcase_05 | AC | 302 ms
24,848 KB |
testcase_06 | AC | 135 ms
24,976 KB |
testcase_07 | AC | 213 ms
25,360 KB |
testcase_08 | AC | 296 ms
25,232 KB |
testcase_09 | AC | 233 ms
24,848 KB |
testcase_10 | AC | 207 ms
24,592 KB |
testcase_11 | AC | 437 ms
24,976 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a,b,c,d,n; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:7: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:1:9: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int] 1 | a,b,c,d,n; | ^ main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main(){ | ^~~~ main.c: In function 'main': main.c:3:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d",&n); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a,b,c,d,n; main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 3 | scanf("%d",&n); | ^~~~~ main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:6:1: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration] 6 | fflush(!printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); | ^~~~~~ main.c:6:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 6 | fflush(!printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); | ^~~~~~ main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:6:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:6:9: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
a,b,c,d,n; main(){ scanf("%d",&n); while(n--){ scanf("%d%d%d%d",&a,&b,&c,&d); fflush(!printf("SELECT count(*) FROM point WHERE x>%d AND x<%d AND y>%d AND y<%d;\n",a-1,b+1,c-1,d+1)); } }