結果
問題 | No.207 世界のなんとか |
ユーザー | kmtrc130 |
提出日時 | 2017-05-17 15:39:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 4,495 ms |
コンパイル使用メモリ | 107,140 KB |
実行使用メモリ | 24,968 KB |
最終ジャッジ日時 | 2023-10-17 23:53:38 |
合計ジャッジ時間 | 5,673 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
24,960 KB |
testcase_01 | AC | 29 ms
24,960 KB |
testcase_02 | AC | 29 ms
24,960 KB |
testcase_03 | AC | 28 ms
24,960 KB |
testcase_04 | AC | 28 ms
24,960 KB |
testcase_05 | AC | 30 ms
24,960 KB |
testcase_06 | AC | 29 ms
24,960 KB |
testcase_07 | AC | 29 ms
24,960 KB |
testcase_08 | AC | 29 ms
24,964 KB |
testcase_09 | AC | 30 ms
24,960 KB |
testcase_10 | AC | 29 ms
24,960 KB |
testcase_11 | AC | 29 ms
24,960 KB |
testcase_12 | AC | 30 ms
24,968 KB |
testcase_13 | AC | 30 ms
24,960 KB |
testcase_14 | AC | 29 ms
24,964 KB |
testcase_15 | AC | 29 ms
24,960 KB |
testcase_16 | AC | 29 ms
24,964 KB |
testcase_17 | AC | 25 ms
24,136 KB |
testcase_18 | AC | 29 ms
24,960 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class Program { static void Main(string[] args) { string[] AB = Console.ReadLine().Split(' '); long A = long.Parse(AB[0]); long B = long.Parse(AB[1]); for (long i = A; i <= B; i++) { if (i % 3 == 0) { Console.WriteLine(i); continue; } if (i.ToString().IndexOf("3") >= 0) { Console.WriteLine(i); } } } }