結果

問題 No.5 数字のブロック
ユーザー zetta2erzetta2er
提出日時 2015-12-23 01:48:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 537 bytes
コンパイル時間 2,521 ms
コンパイル使用メモリ 107,588 KB
実行使用メモリ 24,064 KB
最終ジャッジ日時 2023-08-11 14:26:30
合計ジャッジ時間 6,048 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
21,684 KB
testcase_01 AC 68 ms
21,644 KB
testcase_02 AC 64 ms
23,648 KB
testcase_03 AC 80 ms
22,228 KB
testcase_04 AC 77 ms
22,076 KB
testcase_05 AC 79 ms
22,352 KB
testcase_06 AC 76 ms
20,204 KB
testcase_07 AC 78 ms
22,348 KB
testcase_08 AC 78 ms
22,304 KB
testcase_09 AC 75 ms
24,064 KB
testcase_10 AC 80 ms
22,352 KB
testcase_11 AC 77 ms
22,148 KB
testcase_12 AC 78 ms
20,188 KB
testcase_13 AC 79 ms
22,272 KB
testcase_14 AC 66 ms
23,696 KB
testcase_15 AC 72 ms
19,916 KB
testcase_16 AC 81 ms
22,396 KB
testcase_17 AC 80 ms
22,428 KB
testcase_18 AC 79 ms
22,412 KB
testcase_19 AC 80 ms
22,460 KB
testcase_20 AC 65 ms
21,680 KB
testcase_21 AC 66 ms
23,728 KB
testcase_22 AC 66 ms
23,748 KB
testcase_23 AC 66 ms
21,724 KB
testcase_24 AC 75 ms
21,852 KB
testcase_25 AC 74 ms
22,004 KB
testcase_26 AC 66 ms
21,704 KB
testcase_27 AC 65 ms
21,628 KB
testcase_28 AC 64 ms
21,780 KB
testcase_29 AC 77 ms
20,112 KB
testcase_30 AC 74 ms
22,096 KB
testcase_31 AC 63 ms
19,744 KB
testcase_32 AC 68 ms
21,740 KB
testcase_33 AC 65 ms
23,660 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.Linq;

namespace No0005
{
    class Program
    {
        static void Main(string[] args)
        {
            int L = int.Parse(Console.ReadLine());
            int.Parse(Console.ReadLine());
            var ans = Console.ReadLine()
                        .Split(' ')
                        .Select(s => int.Parse(s))
                        .OrderBy(s => s)
                        .Where(s => (L -= s) >= 0);

            Console.WriteLine(ans.Count());
            Console.ReadLine();
        }
    }
}
0