結果
| 問題 |
No.8021 データベースの練習
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-03-09 02:49:39 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 398 ms / 5,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 1,757 ms |
| コンパイル使用メモリ | 63,528 KB |
| 実行使用メモリ | 25,232 KB |
| 平均クエリ数 | 540.42 |
| 最終ジャッジ日時 | 2024-07-16 20:34:35 |
| 合計ジャッジ時間 | 4,522 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int Q;
main()
{
cin>>Q;
for(;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;
}
}