結果

問題 No.3021 データベースの練習
ユーザー kurenai3110kurenai3110
提出日時 2017-03-31 22:35:18
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 412 ms / 5,000 ms
コード長 392 bytes
コンパイル時間 1,488 ms
コンパイル使用メモリ 61,336 KB
実行使用メモリ 24,360 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 12:58:03
合計ジャッジ時間 4,792 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
23,604 KB
testcase_01 AC 221 ms
24,048 KB
testcase_02 AC 270 ms
24,048 KB
testcase_03 AC 286 ms
23,616 KB
testcase_04 AC 264 ms
23,688 KB
testcase_05 AC 280 ms
23,856 KB
testcase_06 AC 124 ms
24,300 KB
testcase_07 AC 202 ms
23,904 KB
testcase_08 AC 271 ms
24,048 KB
testcase_09 AC 218 ms
24,360 KB
testcase_10 AC 193 ms
23,460 KB
testcase_11 AC 412 ms
23,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;

int main()
{
	int n; cin >> n;

	for (int i = 0; i < n; i++) {
		int minx, maxx, miny, maxy;
		cin >> minx >> maxx >> miny >> maxy;

		cout << "SELECT count(*) FROM point WHERE x>=" << minx << " and x<=" << maxx << " and y>=" << miny << " and y<=" << maxy << ";" << endl;
	}

    return 0;
}

0