結果
問題 | No.3021 データベースの練習 |
ユーザー | gemmaro |
提出日時 | 2020-04-29 19:52:55 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 511 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 11,256 KB |
実行使用メモリ | 31,456 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-24 03:24:37 |
合計ジャッジ時間 | 5,693 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 203 ms
31,352 KB |
testcase_01 | AC | 301 ms
30,872 KB |
testcase_02 | AC | 366 ms
31,268 KB |
testcase_03 | AC | 389 ms
31,456 KB |
testcase_04 | AC | 366 ms
30,840 KB |
testcase_05 | AC | 377 ms
31,236 KB |
testcase_06 | AC | 227 ms
31,240 KB |
testcase_07 | AC | 302 ms
31,416 KB |
testcase_08 | AC | 382 ms
31,436 KB |
testcase_09 | AC | 320 ms
30,772 KB |
testcase_10 | AC | 291 ms
31,036 KB |
testcase_11 | AC | 511 ms
31,344 KB |
コンパイルメッセージ
Syntax OK
ソースコード
# frozen_string_literal: true Q = gets.to_i X = Q.times.map { gets.chomp.split.map(&:to_i) } X.each do |a, b, c, d| puts <<~SQL SELECT count(*) FROM point WHERE x >= #{a} AND x <= #{b} AND y >= #{c} AND y <= #{d}; SQL STDOUT.flush end