結果
問題 | No.8021 データベースの練習 |
ユーザー |
![]() |
提出日時 | 2020-10-18 15:42:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 477 ms / 5,000 ms |
コード長 | 782 bytes |
コンパイル時間 | 1,505 ms |
コンパイル使用メモリ | 122,248 KB |
最終ジャッジ日時 | 2025-01-15 11:30:49 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#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; }