結果
問題 | No.3021 データベースの練習 |
ユーザー | ldsyb |
提出日時 | 2017-03-31 22:35:52 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 398 ms / 5,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 585 ms |
コンパイル使用メモリ | 67,276 KB |
実行使用メモリ | 24,420 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 12:58:57 |
合計ジャッジ時間 | 4,302 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 104 ms
23,400 KB |
testcase_01 | AC | 195 ms
23,700 KB |
testcase_02 | AC | 254 ms
24,384 KB |
testcase_03 | AC | 271 ms
23,664 KB |
testcase_04 | AC | 251 ms
24,420 KB |
testcase_05 | AC | 266 ms
23,424 KB |
testcase_06 | AC | 121 ms
24,060 KB |
testcase_07 | AC | 189 ms
24,060 KB |
testcase_08 | AC | 253 ms
23,568 KB |
testcase_09 | AC | 209 ms
24,396 KB |
testcase_10 | AC | 180 ms
23,676 KB |
testcase_11 | AC | 398 ms
23,856 KB |
ソースコード
#include <iostream> using namespace std; int main(){ int q; cin >> q; while(q--){ string xmin, xmax, ymin, ymax; cin >> xmin >> xmax >> ymin >> ymax; cout << "SELECT count(*) FROM point WHERE " + xmin + " <= x AND x <= " + xmax + " AND " + ymin + " <= y AND y <= " + ymax + ";" << endl; } }