結果
問題 | No.8021 データベースの練習 |
ユーザー |
![]() |
提出日時 | 2017-03-31 22:35:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 436 ms / 5,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 637 ms |
コンパイル使用メモリ | 59,764 KB |
実行使用メモリ | 25,232 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2024-07-16 12:34:40 |
合計ジャッジ時間 | 4,669 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int minx, maxx, miny, maxy; cin >> minx >> maxx >> miny >> maxy; cout << "SELECT count(*) FROM point WHERE x>=" << minx << " and x<=" << maxx << " and y>=" << miny << " and y<=" << maxy << ";" << endl; } return 0; }