結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2016-10-07 15:12:41 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 34 ms / 5,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 2,384 ms |
コンパイル使用メモリ | 110,124 KB |
実行使用メモリ | 26,880 KB |
最終ジャッジ日時 | 2024-11-21 19:38:23 |
合計ジャッジ時間 | 2,419 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; namespace SampleAppCSharp { class Program { static void Main(string[] args) { string AB = Console.ReadLine(); int A = int.Parse(AB.Split(' ')[0]); int B = int.Parse(AB.Split(' ')[1]); for (int num = A; num <= B; num++) { if (num % 3 == 0) Console.WriteLine(num); else if (num.ToString().IndexOf("3") >= 0) Console.WriteLine(num); } } } }