結果
問題 | No.3021 データベースの練習 |
ユーザー | chocorusk |
提出日時 | 2020-10-18 15:42:27 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 424 ms / 5,000 ms |
コード長 | 782 bytes |
コンパイル時間 | 1,115 ms |
コンパイル使用メモリ | 124,684 KB |
実行使用メモリ | 24,276 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-24 06:52:56 |
合計ジャッジ時間 | 6,301 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 102 ms
23,988 KB |
testcase_01 | AC | 215 ms
24,276 KB |
testcase_02 | AC | 278 ms
23,652 KB |
testcase_03 | AC | 294 ms
23,364 KB |
testcase_04 | AC | 275 ms
23,364 KB |
testcase_05 | AC | 286 ms
23,652 KB |
testcase_06 | AC | 129 ms
23,496 KB |
testcase_07 | AC | 201 ms
24,024 KB |
testcase_08 | AC | 280 ms
23,628 KB |
testcase_09 | AC | 225 ms
23,604 KB |
testcase_10 | AC | 200 ms
24,276 KB |
testcase_11 | AC | 424 ms
24,000 KB |
ソースコード
#include <cstdio> #include <cstring> #include <iostream> #include <string> #include <cmath> #include <bitset> #include <vector> #include <map> #include <set> #include <queue> #include <deque> #include <algorithm> #include <complex> #include <unordered_map> #include <unordered_set> #include <random> #include <cassert> #include <fstream> #include <utility> #include <functional> #include <time.h> #include <stack> #include <array> #define popcount __builtin_popcount using namespace std; using ll=long long; typedef pair<int, int> P; int main() { int q; cin>>q; for(int i=0; i<q; i++){ int xl, xh, yl, yh; 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; }