結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
nattoumaru
|
| 提出日時 | 2018-02-14 16:56:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 787 bytes |
| コンパイル時間 | 4,020 ms |
| コンパイル使用メモリ | 103,424 KB |
| 実行使用メモリ | 18,048 KB |
| 最終ジャッジ日時 | 2024-12-21 16:09:36 |
| 合計ジャッジ時間 | 5,285 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 programPractice
{
class Program
{
static void Main(string[] args) {
var stArray = Console.ReadLine().Split();
int[] iArray = new int[2];
for (int i = 0; i < 2; i++)
{
iArray[i] = Int32.Parse(stArray[i]);
}
for (int k = iArray[0]; k <= iArray[1]; k++)
{
string stk = k.ToString();
if (k % 3 == 0)
{
Console.WriteLine(k);
}else if (stk.Contains("3"))
{
Console.WriteLine(k);
}
}
}
}
}
nattoumaru