結果
問題 | No.207 世界のなんとか |
ユーザー | senshi2000 |
提出日時 | 2016-03-24 08:49:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 59 ms / 5,000 ms |
コード長 | 993 bytes |
コンパイル時間 | 2,745 ms |
コンパイル使用メモリ | 104,856 KB |
実行使用メモリ | 22,840 KB |
最終ジャッジ日時 | 2023-07-30 15:36:03 |
合計ジャッジ時間 | 4,279 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
20,736 KB |
testcase_01 | AC | 59 ms
22,724 KB |
testcase_02 | AC | 58 ms
20,752 KB |
testcase_03 | AC | 59 ms
20,728 KB |
testcase_04 | AC | 58 ms
22,840 KB |
testcase_05 | AC | 58 ms
20,760 KB |
testcase_06 | AC | 58 ms
20,824 KB |
testcase_07 | AC | 58 ms
20,752 KB |
testcase_08 | AC | 59 ms
20,668 KB |
testcase_09 | AC | 59 ms
20,904 KB |
testcase_10 | AC | 59 ms
20,736 KB |
testcase_11 | AC | 59 ms
20,776 KB |
testcase_12 | AC | 59 ms
22,816 KB |
testcase_13 | AC | 59 ms
20,836 KB |
testcase_14 | AC | 58 ms
20,796 KB |
testcase_15 | AC | 57 ms
20,804 KB |
testcase_16 | AC | 59 ms
20,852 KB |
testcase_17 | AC | 58 ms
22,768 KB |
testcase_18 | AC | 57 ms
20,728 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; namespace yuki560 { class Problem { public static List<string[]> getinputdata (){ List<string[]> list_temp = new List<string[]>(); string strdata = Console.ReadLine (); while (strdata!=null) { string[] s_temp = strdata.Split (' '); list_temp.Add (s_temp); strdata = Console.ReadLine (); } return list_temp; } public static void Main (string[] args) { List<string[]> list_result = new List<string[]>(); list_result = getinputdata (); int a = int.Parse(list_result[0][0]); int b = int.Parse(list_result[0][1]); for (int i = a; i <= b; i++) { if (i % 3 == 0 || i.ToString().Contains("3")) { Console.WriteLine(i); } } } } }