結果

問題 No.3021 データベースの練習
ユーザー antaanta
提出日時 2017-03-31 22:26:14
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 846 bytes
コンパイル時間 1,578 ms
コンパイル使用メモリ 162,420 KB
実行使用メモリ 104,744 KB
最終ジャッジ日時 2023-09-23 12:55:43
合計ジャッジ時間 14,016 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i))
#define reu(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i))
static const int INF = 0x3f3f3f3f; static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
typedef vector<int> vi; typedef pair<int, int> pii; typedef vector<pair<int, int> > vpii; typedef long long ll;
template<typename T, typename U> static void amin(T &x, U y) { if (y < x) x = y; }
template<typename T, typename U> static void amax(T &x, U y) { if (x < y) x = y; }

int main() {
	int q;
	while (~scanf("%d", &q)) {
		rep(i, q) {
			int A; int B; int C; int D;
			scanf("%d%d%d%d", &A, &B, &C, &D);
			printf("SELECT count(*) FROM point WHERE %d <= x AND x <= %d AND %d <= y AND y <= %d;\n",
				A, B, C, D);
		}
	}
	return 0;
}
0