結果

問題 No.3021 データベースの練習
ユーザー kotamanegikotamanegi
提出日時 2017-03-31 22:49:02
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 424 ms / 5,000 ms
コード長 822 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 91,140 KB
実行使用メモリ 24,396 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:01:05
合計ジャッジ時間 4,997 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
24,072 KB
testcase_01 AC 216 ms
24,288 KB
testcase_02 AC 282 ms
24,396 KB
testcase_03 AC 299 ms
23,472 KB
testcase_04 AC 277 ms
23,568 KB
testcase_05 AC 293 ms
24,288 KB
testcase_06 AC 131 ms
24,048 KB
testcase_07 AC 203 ms
23,712 KB
testcase_08 AC 285 ms
23,688 KB
testcase_09 AC 227 ms
23,616 KB
testcase_10 AC 204 ms
23,736 KB
testcase_11 AC 424 ms
23,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream> 
#include<map>
#include <iomanip>
#include <time.h>
#include <random>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
#define LONG_INF 10000000000000000
#define MAX_MOD 1000000007
#define REP(i,n) for(long long i = 0;i < n;++i)
using namespace std;
int main() {
	int n;
	cin >> n;
	REP(i, n) {
		int a, b, c, d;
		cin >> a >> b >> c >> d;
		cout << "SELECT COUNT(*) FROM point WHERE x >= " << a << " AND x <= " << b << " AND y >= " << c << " AND y <= " << d << ";" << endl;
	}
	return 0;
}
0