結果

問題 No.3021 データベースの練習
ユーザー KKT89KKT89
提出日時 2020-07-13 15:52:47
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 397 ms / 5,000 ms
コード長 583 bytes
コンパイル時間 1,493 ms
コンパイル使用メモリ 107,528 KB
実行使用メモリ 24,396 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-24 03:53:13
合計ジャッジ時間 5,853 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
24,024 KB
testcase_01 AC 209 ms
24,336 KB
testcase_02 AC 279 ms
24,012 KB
testcase_03 AC 295 ms
24,036 KB
testcase_04 AC 273 ms
23,472 KB
testcase_05 AC 287 ms
24,396 KB
testcase_06 AC 128 ms
24,048 KB
testcase_07 AC 205 ms
23,580 KB
testcase_08 AC 280 ms
23,424 KB
testcase_09 AC 226 ms
23,880 KB
testcase_10 AC 198 ms
24,024 KB
testcase_11 AC 397 ms
23,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <queue>
#include <cstdio>
#include <ctime>
#include <assert.h>
#include <chrono>
#include <random>
#include <numeric>
#include <set>
using namespace std;
typedef long long int ll;
using ull = unsigned long long;

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int q; cin >> q;
    while(q--){
        int a,b,c,d; cin >> a >> b >> c >> d;
        printf("SELECT count(*) FROM point WHERE x BETWEEN %d AND %d AND y BETWEEN %d AND %d;",a,b,c,d);
        fflush(stdout);
    }
}
0