結果
問題 | No.3021 データベースの練習 |
ユーザー | kotatsugame |
提出日時 | 2020-03-09 02:49:39 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 415 ms / 5,000 ms |
コード長 | 246 bytes |
コンパイル時間 | 532 ms |
コンパイル使用メモリ | 63,228 KB |
実行使用メモリ | 24,420 KB |
平均クエリ数 | 540.42 |
最終ジャッジ日時 | 2023-09-23 20:43:03 |
合計ジャッジ時間 | 5,562 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 100 ms
23,472 KB |
testcase_01 | AC | 216 ms
24,420 KB |
testcase_02 | AC | 268 ms
24,048 KB |
testcase_03 | AC | 282 ms
23,580 KB |
testcase_04 | AC | 265 ms
23,340 KB |
testcase_05 | AC | 277 ms
23,364 KB |
testcase_06 | AC | 126 ms
23,664 KB |
testcase_07 | AC | 198 ms
23,928 KB |
testcase_08 | AC | 275 ms
23,568 KB |
testcase_09 | AC | 216 ms
23,472 KB |
testcase_10 | AC | 190 ms
24,012 KB |
testcase_11 | AC | 415 ms
23,580 KB |
コンパイルメッセージ
main.cpp:4:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-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; } }