結果
問題 | No.3021 データベースの練習 |
ユーザー | ぴろず |
提出日時 | 2017-04-01 00:19:35 |
言語 | Java19 (openjdk 21) |
結果 |
AC
|
実行時間 | 754 ms / 5,000 ms |
コード長 | 443 bytes |
コンパイル時間 | 2,707 ms |
コンパイル使用メモリ | 72,404 KB |
実行使用メモリ | 77,516 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 13:05:42 |
合計ジャッジ時間 | 10,007 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 245 ms
71,988 KB |
testcase_01 | AC | 503 ms
77,368 KB |
testcase_02 | AC | 639 ms
76,228 KB |
testcase_03 | AC | 649 ms
75,792 KB |
testcase_04 | AC | 617 ms
76,680 KB |
testcase_05 | AC | 614 ms
75,760 KB |
testcase_06 | AC | 341 ms
71,888 KB |
testcase_07 | AC | 468 ms
74,040 KB |
testcase_08 | AC | 639 ms
76,624 KB |
testcase_09 | AC | 531 ms
74,908 KB |
testcase_10 | AC | 467 ms
77,516 KB |
testcase_11 | AC | 754 ms
76,748 KB |
ソースコード
package no3021; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int q = sc.nextInt(); for(int i=0;i<q;i++) { int xl = sc.nextInt(); int xh = sc.nextInt(); int yl = sc.nextInt(); int yh = sc.nextInt(); System.out.println(String.format("SELECT count(*) FROM point WHERE x BETWEEN %d AND %d AND y BETWEEN %d AND %d;",xl,xh,yl,yh)); } } }