結果
問題 | No.3021 データベースの練習 |
ユーザー | uwi |
提出日時 | 2017-03-31 22:28:43 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 689 ms / 5,000 ms |
コード長 | 918 bytes |
コンパイル時間 | 5,485 ms |
コンパイル使用メモリ | 75,016 KB |
実行使用メモリ | 75,832 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 12:57:09 |
合計ジャッジ時間 | 10,498 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 219 ms
67,028 KB |
testcase_01 | AC | 458 ms
73,220 KB |
testcase_02 | AC | 578 ms
75,696 KB |
testcase_03 | AC | 590 ms
75,832 KB |
testcase_04 | AC | 562 ms
74,524 KB |
testcase_05 | AC | 541 ms
75,148 KB |
testcase_06 | AC | 299 ms
71,564 KB |
testcase_07 | AC | 420 ms
72,836 KB |
testcase_08 | AC | 564 ms
75,388 KB |
testcase_09 | AC | 482 ms
75,600 KB |
testcase_10 | AC | 423 ms
73,152 KB |
testcase_11 | AC | 689 ms
74,008 KB |
ソースコード
package contest170331; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class CC { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { for(int Q = ni();Q > 0;Q--){ int xl = ni(), xh = ni(), yl = ni(), yh = ni(); out.printf("select count(*) from point where x between %d and %d and y between %d and %d;\n", xl, xh, yl, yh); out.flush(); } } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }