結果
問題 | No.3021 データベースの練習 |
ユーザー | どらら |
提出日時 | 2017-03-31 23:47:39 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 430 ms / 5,000 ms |
コード長 | 554 bytes |
コンパイル時間 | 1,450 ms |
コンパイル使用メモリ | 164,740 KB |
実行使用メモリ | 24,300 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 13:05:12 |
合計ジャッジ時間 | 5,624 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 103 ms
23,448 KB |
testcase_01 | AC | 210 ms
23,952 KB |
testcase_02 | AC | 274 ms
24,300 KB |
testcase_03 | AC | 288 ms
23,676 KB |
testcase_04 | AC | 272 ms
23,676 KB |
testcase_05 | AC | 287 ms
23,304 KB |
testcase_06 | AC | 126 ms
23,340 KB |
testcase_07 | AC | 200 ms
24,072 KB |
testcase_08 | AC | 279 ms
23,568 KB |
testcase_09 | AC | 226 ms
23,460 KB |
testcase_10 | AC | 197 ms
23,916 KB |
testcase_11 | AC | 430 ms
23,940 KB |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; typedef unsigned long long ull; int main(){ int q; cin >> q; rep(i,q){ int xl, xh, yl, yh; cin >> xl >> xh >> yl >> yh; cout << "SELECT count(*) FROM point WHERE x>=" << xl << " AND x<=" << xh << " AND y>=" << yl << " AND y<=" << yh << ";" << endl; } return 0; }