結果

問題 No.3021 データベースの練習
ユーザー Naoyk1212Naoyk1212
提出日時 2017-04-27 16:32:46
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 377 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 142,744 KB
実行使用メモリ 24,384 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 13:14:22
合計ジャッジ時間 5,642 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
23,688 KB
testcase_01 AC 200 ms
24,348 KB
testcase_02 AC 265 ms
24,384 KB
testcase_03 AC 279 ms
24,336 KB
testcase_04 AC 265 ms
23,928 KB
testcase_05 AC 274 ms
23,652 KB
testcase_06 AC 126 ms
24,156 KB
testcase_07 AC 192 ms
24,036 KB
testcase_08 AC 269 ms
23,760 KB
testcase_09 AC 222 ms
24,348 KB
testcase_10 AC 188 ms
23,208 KB
testcase_11 AC 377 ms
23,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
	int q;
	cin >> q;
	int a, b, c, d;
	for(int i = 0; i < q; i++){
		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