結果

問題 No.3021 データベースの練習
ユーザー zimphazimpha
提出日時 2017-03-31 23:11:26
言語 Python2
(2.7.18)
結果
AC  
実行時間 451 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 6,644 KB
実行使用メモリ 24,372 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:02:02
合計ジャッジ時間 5,033 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
23,868 KB
testcase_01 AC 237 ms
23,868 KB
testcase_02 AC 304 ms
23,484 KB
testcase_03 AC 321 ms
23,676 KB
testcase_04 AC 301 ms
23,712 KB
testcase_05 AC 312 ms
23,508 KB
testcase_06 AC 145 ms
24,336 KB
testcase_07 AC 222 ms
23,460 KB
testcase_08 AC 308 ms
24,372 KB
testcase_09 AC 247 ms
24,348 KB
testcase_10 AC 216 ms
23,580 KB
testcase_11 AC 451 ms
24,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

q = int(raw_input())
for i in xrange(q):
    x1, x2, y1, y2 = map(int, raw_input().split(' '))
    print 'SELECT count(*) FROM point WHERE x >= %d and x <= %d and y >= %d and y <= %d;' % (x1, x2, y1, y2)
    sys.stdout.flush()
0