結果
問題 |
No.8021 データベースの練習
|
ユーザー |
|
提出日時 | 2020-08-01 10:41:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 488 ms / 5,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 1,259 ms |
コンパイル使用メモリ | 67,104 KB |
最終ジャッジ日時 | 2025-01-12 12:25:19 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> void solve() { int q; std::cin >> q; while (q--) { int x1, x2, y1, y2; std::cin >> x1 >> x2 >> y1 >> y2; std::cout << "SELECT count(*) FROM point WHERE " << "x>=" << x1 << " AND x<=" << x2 << " AND y>=" << y1 << " AND y<=" << y2 << ";" << std::endl; } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }