結果

問題 No.3021 データベースの練習
ユーザー MisterMister
提出日時 2020-08-01 10:41:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 420 ms / 5,000 ms
コード長 462 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 68,352 KB
実行使用メモリ 24,324 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 03:59:34
合計ジャッジ時間 5,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
23,424 KB
testcase_01 AC 208 ms
23,868 KB
testcase_02 AC 278 ms
23,520 KB
testcase_03 AC 292 ms
23,652 KB
testcase_04 AC 270 ms
23,664 KB
testcase_05 AC 284 ms
23,520 KB
testcase_06 AC 127 ms
24,276 KB
testcase_07 AC 202 ms
24,324 KB
testcase_08 AC 276 ms
23,652 KB
testcase_09 AC 221 ms
23,424 KB
testcase_10 AC 197 ms
24,324 KB
testcase_11 AC 420 ms
24,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

void solve() {
    int q;
    std::cin >> q;
    while (q--) {
        int x1, x2, y1, y2;
        std::cin >> x1 >> x2 >> y1 >> y2;

        std::cout << "SELECT count(*) FROM point WHERE "
                  << "x>=" << x1 << " AND x<=" << x2
                  << " AND y>=" << y1 << " AND y<=" << y2 << ";" << std::endl;
    }
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}
0