結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-08 12:21:13 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 5,000 ms |
| コード長 | 540 bytes |
| コンパイル時間 | 954 ms |
| コンパイル使用メモリ | 107,264 KB |
| 実行使用メモリ | 19,584 KB |
| 最終ジャッジ日時 | 2024-11-28 04:28:56 |
| 合計ジャッジ時間 | 2,346 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
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;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Three
{
class Program
{
static void Main()
{
var InputData = Console.ReadLine().Split(' ').Select(value => Convert.ToInt32(value)).ToList();
var OutPutData = Enumerable.Range(InputData[0], InputData[1] - InputData[0] + 1).Where(value => value % 3 == 0 || value.ToString().Contains("3")).ToList().OrderBy(value => value);
foreach (var OutPut in OutPutData)
Console.WriteLine(OutPut);
}
}
}