結果
問題 | No.8021 データベースの練習 |
ユーザー |
![]() |
提出日時 | 2017-03-31 22:49:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 408 ms / 5,000 ms |
コード長 | 822 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 93,384 KB |
実行使用メモリ | 25,360 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2024-07-16 12:38:02 |
合計ジャッジ時間 | 4,883 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <algorithm> #include <utility> #include <functional> #include <cstring> #include <queue> #include <stack> #include <math.h> #include <iterator> #include <vector> #include <string> #include <set> #include <math.h> #include <iostream> #include<map> #include <iomanip> #include <time.h> #include <random> #include <stdlib.h> #include <list> #include <typeinfo> #include <list> #include <set> #define LONG_INF 10000000000000000 #define MAX_MOD 1000000007 #define REP(i,n) for(long long i = 0;i < n;++i) using namespace std; int main() { int n; cin >> n; REP(i, n) { int a, b, c, d; cin >> a >> b >> c >> d; cout << "SELECT COUNT(*) FROM point WHERE x >= " << a << " AND x <= " << b << " AND y >= " << c << " AND y <= " << d << ";" << endl; } return 0; }