結果
問題 | No.3021 データベースの練習 |
ユーザー | 西尾 |
提出日時 | 2018-08-21 14:36:49 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 419 ms / 5,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 1,400 ms |
コンパイル使用メモリ | 164,360 KB |
実行使用メモリ | 24,192 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 16:13:25 |
合計ジャッジ時間 | 5,553 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
23,976 KB |
testcase_01 | AC | 215 ms
23,976 KB |
testcase_02 | AC | 269 ms
23,784 KB |
testcase_03 | AC | 287 ms
23,388 KB |
testcase_04 | AC | 269 ms
23,580 KB |
testcase_05 | AC | 280 ms
23,784 KB |
testcase_06 | AC | 125 ms
23,964 KB |
testcase_07 | AC | 195 ms
23,376 KB |
testcase_08 | AC | 275 ms
23,964 KB |
testcase_09 | AC | 218 ms
23,328 KB |
testcase_10 | AC | 194 ms
24,000 KB |
testcase_11 | AC | 419 ms
24,192 KB |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { int i; int q; int xl, xh, yl, yh; ios::sync_with_stdio( false ); cin.tie( 0 ); cin >> q; for( i = 0; i < q; i++ ) { cin >> xl >> xh >> yl >> yh; cout << "SELECT count( * ) FROM point WHERE x >= " << xl << " AND x <= " << xh << " AND y >= " << yl << " AND y <= " << yh << ";" << endl; } return 0; }