結果

問題 No.3021 データベースの練習
ユーザー ei1333333ei1333333
提出日時 2017-03-31 23:38:14
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 421 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 1,168 ms
コンパイル使用メモリ 142,616 KB
実行使用メモリ 24,420 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:04:34
合計ジャッジ時間 5,530 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
23,568 KB
testcase_01 AC 209 ms
23,664 KB
testcase_02 AC 275 ms
23,676 KB
testcase_03 AC 295 ms
23,916 KB
testcase_04 AC 266 ms
24,060 KB
testcase_05 AC 277 ms
23,556 KB
testcase_06 AC 126 ms
23,844 KB
testcase_07 AC 197 ms
23,700 KB
testcase_08 AC 264 ms
24,420 KB
testcase_09 AC 212 ms
23,556 KB
testcase_10 AC 192 ms
23,688 KB
testcase_11 AC 421 ms
23,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

int main()
{
  int M;
  cin >> M;
  while(M--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    printf("SELECT count(*) FROM point WHERE x >= %d AND x <= %d AND y >= %d AND y <= %d;\n", a, b, c, d);
    fflush(stdout);
  }


}

0