結果
問題 | No.3021 データベースの練習 |
ユーザー | 西尾 |
提出日時 | 2018-08-21 14:33:05 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 355 ms / 5,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 1,310 ms |
コンパイル使用メモリ | 162,308 KB |
実行使用メモリ | 24,348 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2023-09-23 16:13:41 |
合計ジャッジ時間 | 5,324 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 97 ms
24,048 KB |
testcase_01 | AC | 195 ms
24,072 KB |
testcase_02 | AC | 252 ms
24,000 KB |
testcase_03 | AC | 276 ms
23,376 KB |
testcase_04 | AC | 249 ms
23,856 KB |
testcase_05 | AC | 272 ms
23,364 KB |
testcase_06 | AC | 123 ms
24,348 KB |
testcase_07 | AC | 188 ms
24,192 KB |
testcase_08 | AC | 268 ms
23,256 KB |
testcase_09 | AC | 214 ms
23,856 KB |
testcase_10 | AC | 185 ms
23,784 KB |
testcase_11 | AC | 355 ms
23,868 KB |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { int i; int q; int xl, xh, yl, yh; ios::sync_with_stdio( false ); cin.tie( 0 ); cin >> q; for( i = 0; i < q; i++ ) { cin >> xl >> xh >> yl >> yh; printf( "SELECT count( * ) FROM point WHERE ( x BETWEEN %d AND %d ) " "AND ( y BETWEEN %d AND %d );", xl, xh, yl, yh ); } return 0; }