結果

問題 No.3021 データベースの練習
ユーザー data9824data9824
提出日時 2017-03-31 22:47:00
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 421 ms / 5,000 ms
コード長 362 bytes
コンパイル時間 1,115 ms
コンパイル使用メモリ 58,268 KB
実行使用メモリ 24,300 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:00:30
合計ジャッジ時間 4,594 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
24,072 KB
testcase_01 AC 210 ms
23,676 KB
testcase_02 AC 277 ms
23,592 KB
testcase_03 AC 292 ms
23,928 KB
testcase_04 AC 275 ms
23,856 KB
testcase_05 AC 290 ms
23,760 KB
testcase_06 AC 127 ms
23,928 KB
testcase_07 AC 200 ms
23,304 KB
testcase_08 AC 289 ms
24,300 KB
testcase_09 AC 228 ms
23,316 KB
testcase_10 AC 202 ms
23,592 KB
testcase_11 AC 421 ms
23,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <map>

using namespace std;

int main() {
	int n;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		int xl, xh, yl, yh;
		cin >> xl >> xh >> yl >> yh;
		cout << "SELECT COUNT(id) FROM point WHERE x BETWEEN " << xl
			<< " AND " << xh 
			<< " AND y BETWEEN " << yl 
			<< " AND " << yh
			<< ";" << endl;
	}
	return 0;
}
0