結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
meimaruEngineer
|
| 提出日時 | 2019-05-13 18:28:09 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 5,000 ms |
| コード長 | 549 bytes |
| コンパイル時間 | 2,415 ms |
| コンパイル使用メモリ | 109,708 KB |
| 実行使用メモリ | 26,772 KB |
| 最終ジャッジ日時 | 2024-07-07 23:36:54 |
| 合計ジャッジ時間 | 3,520 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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;
class No207
{
static void Main(string[] args)
{
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int loopCount = b - a;
for (int i = 0; i <= loopCount; i++)
{
int answer = a + i;
string str = answer.ToString();
if ((answer % 3 == 0) || (str.IndexOf("3") >= 0))
{
Console.WriteLine(answer);
}
}
}
}
meimaruEngineer