結果

問題 No.3021 データベースの練習
ユーザー trineutrontrineutron
提出日時 2020-04-19 18:35:25
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 413 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 1,928 ms
コンパイル使用メモリ 197,544 KB
実行使用メモリ 24,372 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 03:19:44
合計ジャッジ時間 8,275 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
23,868 KB
testcase_01 AC 221 ms
23,472 KB
testcase_02 AC 282 ms
23,544 KB
testcase_03 AC 295 ms
23,688 KB
testcase_04 AC 274 ms
24,372 KB
testcase_05 AC 287 ms
23,544 KB
testcase_06 AC 131 ms
23,976 KB
testcase_07 AC 201 ms
24,300 KB
testcase_08 AC 274 ms
24,000 KB
testcase_09 AC 224 ms
23,880 KB
testcase_10 AC 197 ms
23,400 KB
testcase_11 AC 413 ms
24,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

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;
    }
}
0