結果

問題 No.3021 データベースの練習
ユーザー keymoonkeymoon
提出日時 2020-12-31 22:17:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 480 ms / 5,000 ms
コード長 656 bytes
コンパイル時間 3,152 ms
コンパイル使用メモリ 103,316 KB
実行使用メモリ 40,076 KB
平均クエリ数 540.42
最終ジャッジ日時 2023-09-24 09:37:24
合計ジャッジ時間 8,442 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 167 ms
37,496 KB
testcase_01 AC 271 ms
38,272 KB
testcase_02 AC 339 ms
35,944 KB
testcase_03 AC 354 ms
36,000 KB
testcase_04 AC 338 ms
39,896 KB
testcase_05 AC 342 ms
37,432 KB
testcase_06 AC 190 ms
37,960 KB
testcase_07 AC 259 ms
37,340 KB
testcase_08 AC 350 ms
40,000 KB
testcase_09 AC 285 ms
38,012 KB
testcase_10 AC 264 ms
40,076 KB
testcase_11 AC 480 ms
37,512 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

public static class P
{
    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        for (int i = 0; i < n; i++)
        {
            var abcd = Console.ReadLine().Split().Select(int.Parse).ToArray();
            Console.WriteLine($"SELECT count(*) FROM point WHERE {abcd[0]}<=x and x<={abcd[1]} and {abcd[2]}<=y and y<={abcd[3]};");
        }
    }
}
0