結果
| 問題 |
No.8021 データベースの練習
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-31 22:34:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 409 ms / 5,000 ms |
| コード長 | 770 bytes |
| コンパイル時間 | 965 ms |
| コンパイル使用メモリ | 100,860 KB |
| 実行使用メモリ | 25,616 KB |
| 平均クエリ数 | 540.42 |
| 最終ジャッジ日時 | 2024-07-16 12:33:52 |
| 合計ジャッジ時間 | 4,484 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#define _USE_MATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
using namespace std;
int main()
{
int q;
cin >> q;
while(--q >= 0){
int x1, x2, y1, y2;
cin >> x1 >> x2 >> y1 >> y2;
cout << "SELECT count(*) FROM point WHERE "
<< y1 << " <= y AND y <= " << y2 << " AND "
<< x1 << " <= x AND x <= " << x2 << ';' << endl;
}
return 0;
}