結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2016-12-17 11:04:31 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 104,788 KB |
実行使用メモリ | 28,168 KB |
最終ジャッジ日時 | 2024-12-14 04:17:18 |
合計ジャッジ時間 | 2,022 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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;class Q0207{public static void Main(){string[] input = Console.ReadLine().Split(' ');int a = int.Parse(input[0]);int b = int.Parse(input[1]);for(int i=a; i<=b; i++){bool flag = false;if(i%3 == 0){flag = true;}for(int n=i; n>0; n/=10){if(n%10 == 3){flag = true;break;}}if(flag){Console.WriteLine(i);}}}}