結果
問題 |
No.8021 データベースの練習
|
ユーザー |
|
提出日時 | 2017-03-31 22:26:35 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 916 bytes |
コンパイル時間 | 4,671 ms |
コンパイル使用メモリ | 78,360 KB |
実行使用メモリ | 75,536 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2024-07-16 12:32:35 |
合計ジャッジ時間 | 9,436 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 11 |
ソースコード
package contest170331; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class T { 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)); } }