結果

問題 No.207 世界のなんとか
ユーザー sasamesasame
提出日時 2017-05-10 12:20:29
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 2,191 ms
コンパイル使用メモリ 106,760 KB
実行使用メモリ 24,464 KB
最終ジャッジ日時 2023-10-13 09:58:53
合計ジャッジ時間 4,904 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 81 ms
22,388 KB
testcase_04 AC 81 ms
24,384 KB
testcase_05 WA -
testcase_06 AC 80 ms
20,300 KB
testcase_07 AC 81 ms
24,364 KB
testcase_08 AC 81 ms
22,380 KB
testcase_09 AC 80 ms
22,312 KB
testcase_10 WA -
testcase_11 AC 80 ms
22,260 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 81 ms
22,480 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 59 ms
23,812 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.Collections;
using System.Collections.Generic;
using System.Linq;

public class Program{
  public static void Main(){
    string[] input = Console.ReadLine().Trim().Split(' ');
    int start = int.Parse(input[0]);
    int count = int.Parse(input[1]) - start;
    var list = Enumerable.Range(start, count).Where(w => w % 3 == 0 || 0 <= w.ToString().IndexOf("3"));
    foreach (var l in list){
        Console.WriteLine(l);
    }
  }
}
0