結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-27 15:35:19 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 558 bytes |
| コンパイル時間 | 843 ms |
| コンパイル使用メモリ | 110,008 KB |
| 実行使用メモリ | 26,132 KB |
| 最終ジャッジ日時 | 2024-06-27 21:40:17 |
| 合計ジャッジ時間 | 2,061 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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;
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;
}
}
}
}
}