結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-27 15:36:53 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 5,000 ms |
| コード長 | 559 bytes |
| 記録 | |
| コンパイル時間 | 700 ms |
| コンパイル使用メモリ | 110,456 KB |
| 実行使用メモリ | 18,688 KB |
| 最終ジャッジ日時 | 2026-03-16 01:03:11 |
| 合計ジャッジ時間 | 1,856 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}
}
}
}