結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
nattoumaru
|
| 提出日時 | 2018-02-14 16:49:23 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 789 bytes |
| コンパイル時間 | 771 ms |
| コンパイル使用メモリ | 107,932 KB |
| 実行使用メモリ | 18,176 KB |
| 最終ジャッジ日時 | 2024-12-21 15:44:43 |
| 合計ジャッジ時間 | 1,899 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]+1; k++)
{
string stk = k.ToString();
if (k % 3 == 0)
{
Console.WriteLine(k);
}else if (stk.Contains("3"))
{
Console.WriteLine(k);
}
}
}
}
}
nattoumaru