結果

問題 No.3021 データベースの練習
ユーザー maspymaspy
提出日時 2020-03-22 13:57:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 394 ms / 5,000 ms
コード長 334 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 24,276 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 03:13:56
合計ジャッジ時間 3,865 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
23,584 KB
testcase_01 AC 196 ms
24,276 KB
testcase_02 AC 256 ms
23,696 KB
testcase_03 AC 265 ms
24,000 KB
testcase_04 AC 248 ms
23,400 KB
testcase_05 AC 267 ms
24,096 KB
testcase_06 AC 125 ms
23,544 KB
testcase_07 AC 185 ms
24,108 KB
testcase_08 AC 254 ms
24,228 KB
testcase_09 AC 215 ms
23,556 KB
testcase_10 AC 189 ms
23,640 KB
testcase_11 AC 394 ms
23,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

Q = int(readline())
for _ in range(Q):
    a, b, c, d = map(int, readline().split())
    print('SELECT count(*) FROM point WHERE {} <= x AND x <= {} AND {} <= y AND y <= {};'.format(a, b, c, d))
0