結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2018-04-27 15:36:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 5,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 1,824 ms |
コンパイル使用メモリ | 108,200 KB |
実行使用メモリ | 26,260 KB |
最終ジャッジ日時 | 2024-06-27 21:40:23 |
合計ジャッジ時間 | 1,948 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 Program4{ static void Main(string[]args){ string N=Console.ReadLine(); string []t=N.Split(' '); long A=long.Parse(t[0]); long B=long.Parse(t[1]); for(long i=A;i<=B;i++){ if(i%3==0){ Console.WriteLine(i); continue; } for(long j=i;j>0;j=j/10){ if(j%10==3){ Console.WriteLine(i); break; } } } } }