結果
問題 | No.5 数字のブロック |
ユーザー | 富浜 |
提出日時 | 2015-03-05 22:43:51 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 657 bytes |
コンパイル時間 | 3,650 ms |
コンパイル使用メモリ | 101,320 KB |
実行使用メモリ | 23,300 KB |
最終ジャッジ日時 | 2023-09-06 13:47:28 |
合計ジャッジ時間 | 7,096 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
20,516 KB |
testcase_01 | AC | 56 ms
20,552 KB |
testcase_02 | WA | - |
testcase_03 | AC | 67 ms
21,096 KB |
testcase_04 | AC | 66 ms
20,984 KB |
testcase_05 | WA | - |
testcase_06 | AC | 67 ms
21,024 KB |
testcase_07 | AC | 66 ms
20,904 KB |
testcase_08 | AC | 66 ms
20,976 KB |
testcase_09 | AC | 65 ms
20,904 KB |
testcase_10 | AC | 68 ms
23,180 KB |
testcase_11 | AC | 66 ms
21,044 KB |
testcase_12 | AC | 66 ms
18,940 KB |
testcase_13 | AC | 69 ms
23,036 KB |
testcase_14 | AC | 57 ms
20,660 KB |
testcase_15 | WA | - |
testcase_16 | AC | 68 ms
21,236 KB |
testcase_17 | AC | 68 ms
21,236 KB |
testcase_18 | AC | 69 ms
23,104 KB |
testcase_19 | AC | 69 ms
23,300 KB |
testcase_20 | RE | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 57 ms
20,676 KB |
testcase_24 | AC | 65 ms
20,740 KB |
testcase_25 | AC | 65 ms
20,792 KB |
testcase_26 | RE | - |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | RE | - |
testcase_32 | RE | - |
testcase_33 | RE | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace csharptest { class Program { static void Main(string[] args) { int l = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); int[] w = new int[n]; string[] str = Console.ReadLine().Split(' '); for (int m = 0; m < str.Length; m++) { w[m] = int.Parse(str[m]); } Array.Sort(w); int count,box=0; for (count = 0; box < l || n < count; count++) { box += w[count]; } Console.WriteLine(count-1); } } }