結果

問題 No.3021 データベースの練習
ユーザー くれちーくれちー
提出日時 2017-04-01 00:34:54
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 394 ms / 5,000 ms
コード長 818 bytes
コンパイル時間 1,508 ms
コンパイル使用メモリ 27,740 KB
実行使用メモリ 24,312 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:06:34
合計ジャッジ時間 4,343 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
23,616 KB
testcase_01 AC 206 ms
24,024 KB
testcase_02 AC 269 ms
24,312 KB
testcase_03 AC 293 ms
23,448 KB
testcase_04 AC 269 ms
23,604 KB
testcase_05 AC 278 ms
23,676 KB
testcase_06 AC 125 ms
23,448 KB
testcase_07 AC 196 ms
23,496 KB
testcase_08 AC 267 ms
23,400 KB
testcase_09 AC 215 ms
23,424 KB
testcase_10 AC 187 ms
24,096 KB
testcase_11 AC 394 ms
23,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#define REP(i, n) for (ll i = 0; i < n; i++)
#define REP1(i, n) for (ll i = 1; i <= n; i++)
#define RREP(i, n) for (ll i = n - 1; i >= 0; i--)
#define RREP1(i, n) for (ll i = n; i >= 1; i--)
#define FOR(i, a, b, c) for (ll i = a; i <= b; i += c)
#define RFOR(i, a, b, c) for (ll i = a; i >= b; i -= c)
#define MAX(a, b) (a > b ? a : b)
#define MIN(a, b) (a < b ? a : b)
#define INF 1145141919
typedef long long ll;

int main() {
    int q;
    scanf("%d", &q);

    REP(i, q) {
        int xl, xh, yl, yh;
        scanf("%d %d %d %d", &xl, &xh, &yl, &yh);
        printf("SELECT COUNT(*) FROM point WHERE (x BETWEEN %d AND %d) AND (y BETWEEN %d AND %d);\n", xl, xh, yl, yh);
        fflush(stdout);
    }
    return 0;
}
0