結果

問題 No.3021 データベースの練習
ユーザー koba-e964koba-e964
提出日時 2017-03-31 22:37:43
言語 Ruby
(3.2.2)
結果
AC  
実行時間 514 ms / 5,000 ms
コード長 157 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,360 KB
実行使用メモリ 31,244 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 12:59:23
合計ジャッジ時間 5,637 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 197 ms
31,244 KB
testcase_01 AC 304 ms
30,780 KB
testcase_02 AC 370 ms
30,860 KB
testcase_03 AC 388 ms
31,044 KB
testcase_04 AC 365 ms
30,740 KB
testcase_05 AC 379 ms
30,616 KB
testcase_06 AC 222 ms
30,760 KB
testcase_07 AC 292 ms
31,244 KB
testcase_08 AC 372 ms
30,876 KB
testcase_09 AC 316 ms
31,072 KB
testcase_10 AC 294 ms
31,200 KB
testcase_11 AC 514 ms
31,104 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

q = gets.to_i
for _ in 1 .. q
  a, b, c, d = gets.split.map &:to_i
  puts "SELECT count(*) FROM point WHERE x>=#{a} AND x<=#{b} AND y>=#{c} AND y<=#{d};"
end
0