結果
| 問題 | No.8021 データベースの練習 |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2016-09-24 17:23:11 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 260 ms / 5,000 ms |
| + 4µs | |
| コード長 | 419 bytes |
| 記録 | |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 75,776 KB |
| 実行使用メモリ | 6,016 KB |
| 平均クエリ数 | 542.42 |
| 最終ジャッジ日時 | 2026-08-14 00:35:10 |
| 合計ジャッジ時間 | 3,797 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int q;
cin >> q;
cout << "CREATE INDEX idx1 ON point(x);" << endl;
cout << "CREATE INDEX idx2 ON point(x,y);" << endl;
while(q--){
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << "SELECT count(*) FROM point WHERE (x BETWEEN " << a
<<" and " << b << ") and (y BETWEEN " << c << " and " << d <<");" << endl;
}
return 0;
}
koyumeishi