結果
問題 | No.354 メルセンヌ素数 |
ユーザー | 明智重蔵 |
提出日時 | 2016-06-11 20:14:04 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 1,000 ms |
コード長 | 591 bytes |
コンパイル時間 | 826 ms |
コンパイル使用メモリ | 112,320 KB |
実行使用メモリ | 25,660 KB |
最終ジャッジ日時 | 2024-04-10 00:18:34 |
合計ジャッジ時間 | 1,802 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 21 ms
23,448 KB |
testcase_01 | AC | 23 ms
23,600 KB |
testcase_02 | AC | 22 ms
25,540 KB |
testcase_03 | AC | 23 ms
25,540 KB |
testcase_04 | AC | 23 ms
23,632 KB |
testcase_05 | AC | 22 ms
23,596 KB |
testcase_06 | AC | 22 ms
25,660 KB |
testcase_07 | AC | 21 ms
23,576 KB |
testcase_08 | AC | 22 ms
23,340 KB |
testcase_09 | AC | 21 ms
21,176 KB |
testcase_10 | AC | 22 ms
23,488 KB |
testcase_11 | AC | 23 ms
23,248 KB |
testcase_12 | AC | 21 ms
23,368 KB |
testcase_13 | AC | 23 ms
23,696 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List<string> GetInputList() { var WillReturn = new List<string>(); if (InputPattern == "Input1") { WillReturn.Add("2"); //2 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List<string> InputList = GetInputList(); Console.WriteLine(InputList[0]); } }