結果

問題 No.3021 データベースの練習
ユーザー furafura
提出日時 2020-04-13 15:10:33
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 414 ms / 5,000 ms
コード長 321 bytes
コンパイル時間 2,096 ms
コンパイル使用メモリ 196,864 KB
実行使用メモリ 24,312 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 03:17:57
合計ジャッジ時間 6,350 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
24,252 KB
testcase_01 AC 217 ms
23,544 KB
testcase_02 AC 278 ms
24,048 KB
testcase_03 AC 292 ms
24,312 KB
testcase_04 AC 277 ms
24,264 KB
testcase_05 AC 286 ms
23,460 KB
testcase_06 AC 131 ms
23,340 KB
testcase_07 AC 203 ms
23,424 KB
testcase_08 AC 278 ms
23,940 KB
testcase_09 AC 220 ms
23,472 KB
testcase_10 AC 202 ms
24,276 KB
testcase_11 AC 414 ms
23,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

int main(){
	int q; scanf("%d",&q);
	rep(_,q){
		int x1,x2,y1,y2; scanf("%d%d%d%d",&x1,&x2,&y1,&y2);
		printf("SELECT count(*) FROM point WHERE %d<=x AND x<=%d AND %d<=y AND y<=%d;\n",x1,x2,y1,y2);
		fflush(stdout);
	}
	return 0;
}
0