結果

問題 No.3021 データベースの練習
ユーザー koyumeishikoyumeishi
提出日時 2016-09-23 22:04:29
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 407 ms / 5,000 ms
コード長 313 bytes
コンパイル時間 720 ms
コンパイル使用メモリ 65,784 KB
実行使用メモリ 24,300 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-07 23:04:02
合計ジャッジ時間 6,304 ms
ジャッジサーバーID
(参考情報)
judge5 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
23,328 KB
testcase_01 AC 237 ms
24,300 KB
testcase_02 AC 287 ms
23,604 KB
testcase_03 AC 306 ms
23,364 KB
testcase_04 AC 290 ms
23,544 KB
testcase_05 AC 295 ms
23,532 KB
testcase_06 AC 134 ms
23,484 KB
testcase_07 AC 210 ms
23,952 KB
testcase_08 AC 291 ms
23,964 KB
testcase_09 AC 232 ms
23,340 KB
testcase_10 AC 206 ms
23,748 KB
testcase_11 AC 407 ms
23,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;
int main(){
  int q;
  cin >> q;
  while(q--){
    int a,b,c,d;
    cin >> a >> b >> c >> d;
    cout << "SELECT count(*) FROM point WHERE (x BETWEEN " << a 
    <<" and " << b << ") and (y BETWEEN " << c << " and " << d <<");" << endl;
  }
  return 0;
}
0