結果

問題 No.3021 データベースの練習
ユーザー 👑 rin204rin204
提出日時 2020-06-11 00:49:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 405 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 24,408 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 03:39:28
合計ジャッジ時間 4,727 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
23,724 KB
testcase_01 AC 233 ms
23,536 KB
testcase_02 AC 290 ms
24,372 KB
testcase_03 AC 292 ms
24,276 KB
testcase_04 AC 263 ms
23,816 KB
testcase_05 AC 277 ms
23,412 KB
testcase_06 AC 124 ms
24,360 KB
testcase_07 AC 195 ms
24,180 KB
testcase_08 AC 268 ms
24,408 KB
testcase_09 AC 213 ms
23,864 KB
testcase_10 AC 189 ms
23,676 KB
testcase_11 AC 405 ms
24,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

q = int(input())

for _ in range(q):
    a, b, c, d = map(int, input().split())
    ans = "SELECT count(*) FROM point WHERE {0} <= x AND x <= {1} AND {2} <= y AND y <= {3};".format(a, b, c, d)
    print(ans)
0