結果

問題 No.1110 好きな歌
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-08-31 16:20:17
言語 C#(csc)
(csc 3.9.0)
結果
TLE  
実行時間 -
コード長 634 bytes
コンパイル時間 3,424 ms
コンパイル使用メモリ 102,436 KB
実行使用メモリ 32,608 KB
最終ジャッジ日時 2023-08-31 16:20:37
合計ジャッジ時間 17,119 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
23,804 KB
testcase_01 AC 63 ms
21,804 KB
testcase_02 AC 64 ms
21,820 KB
testcase_03 AC 63 ms
21,820 KB
testcase_04 AC 64 ms
22,004 KB
testcase_05 AC 65 ms
21,832 KB
testcase_06 AC 64 ms
21,924 KB
testcase_07 AC 68 ms
21,876 KB
testcase_08 AC 63 ms
21,928 KB
testcase_09 AC 65 ms
23,968 KB
testcase_10 AC 65 ms
21,840 KB
testcase_11 AC 66 ms
21,888 KB
testcase_12 AC 64 ms
21,920 KB
testcase_13 AC 63 ms
19,968 KB
testcase_14 AC 70 ms
21,840 KB
testcase_15 AC 68 ms
23,968 KB
testcase_16 AC 70 ms
23,868 KB
testcase_17 AC 73 ms
21,944 KB
testcase_18 AC 64 ms
23,936 KB
testcase_19 AC 72 ms
21,832 KB
testcase_20 AC 71 ms
19,892 KB
testcase_21 AC 69 ms
21,932 KB
testcase_22 AC 70 ms
21,828 KB
testcase_23 AC 66 ms
21,888 KB
testcase_24 TLE -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Generic;
using System.Linq;
using System.Numerics;

namespace yukicoder
{
    public class Program
    {
        public static void Main()
        {
            var line = Console.ReadLine().Split().Select(x => long.Parse(x)).ToArray();
            var n = line[0];
            var d = line[1];
            var a = new int[n];
            for(var i = 0; i < n; i++)
            {
                a[i] = int.Parse(Console.ReadLine());
            }
            foreach(var p in a)
            {
                Console.WriteLine(a.Where(x => x <= p - d).Count());
            }
        }
    }
}
0