結果

問題 No.3021 データベースの練習
ユーザー latte0119latte0119
提出日時 2017-03-31 23:39:26
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 431 ms / 5,000 ms
コード長 676 bytes
コンパイル時間 1,253 ms
コンパイル使用メモリ 143,912 KB
実行使用メモリ 24,396 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-23 13:04:40
合計ジャッジ時間 5,345 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
23,460 KB
testcase_01 AC 213 ms
23,700 KB
testcase_02 AC 275 ms
23,448 KB
testcase_03 AC 296 ms
24,072 KB
testcase_04 AC 276 ms
23,652 KB
testcase_05 AC 290 ms
24,072 KB
testcase_06 AC 131 ms
24,060 KB
testcase_07 AC 206 ms
24,036 KB
testcase_08 AC 286 ms
24,384 KB
testcase_09 AC 225 ms
23,556 KB
testcase_10 AC 199 ms
24,288 KB
testcase_11 AC 431 ms
24,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

#define int long long

#define rep(i,n) for(int i=0;i<(n);i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
typedef vector<int>vint;
typedef pair<int,int>pint;
typedef vector<pint>vpint;

template<typename A,typename B>inline void chmin(A &a,B b){if(a>b)a=b;}
template<typename A,typename B>inline void chmax(A &a,B b){if(a<b)a=b;}



signed main(){
    int q;cin>>q;
    while(q--){
        int x1,x2,y1,y2;
        cin>>x1>>x2>>y1>>y2;

        cout<<"SELECT count(*) FROM point WHERE "<<"x>="<<x1<<" AND x<="<<x2<<" AND y>="<<y1<<" AND y<="<<y2<<";"<<endl;
    }
    return 0;
}
0