結果

問題 No.3021 データベースの練習
ユーザー 西尾西尾
提出日時 2018-08-21 13:37:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 404 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 1,395 ms
コンパイル使用メモリ 163,392 KB
実行使用メモリ 24,336 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 16:13:33
合計ジャッジ時間 5,603 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
23,832 KB
testcase_01 AC 215 ms
23,496 KB
testcase_02 AC 286 ms
23,388 KB
testcase_03 AC 299 ms
23,376 KB
testcase_04 AC 281 ms
24,228 KB
testcase_05 AC 290 ms
24,336 KB
testcase_06 AC 135 ms
23,520 KB
testcase_07 AC 208 ms
24,288 KB
testcase_08 AC 287 ms
24,012 KB
testcase_09 AC 231 ms
23,496 KB
testcase_10 AC 205 ms
23,616 KB
testcase_11 AC 404 ms
23,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main()
{
int i;
int q;
int xl, xh, yl, yh;

	cin >> q;

	for( i = 0; i < q; i++ )
	{
		cin >> xl >> xh >> yl >> yh;

		printf(
				"SELECT count( * ) FROM point WHERE ( x BETWEEN %d AND %d ) "
				"AND ( y BETWEEN %d AND %d );",
				xl, xh, yl, yh );
	}

	return 0;
}
0