結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2019-05-13 18:21:16 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 548 bytes |
コンパイル時間 | 1,969 ms |
コンパイル使用メモリ | 103,680 KB |
実行使用メモリ | 18,944 KB |
最終ジャッジ日時 | 2024-07-07 23:28:11 |
合計ジャッジ時間 | 2,888 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
コンパイルメッセージ
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);}}}}