結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-25 09:30:26 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 5,000 ms |
| コード長 | 702 bytes |
| コンパイル時間 | 7,925 ms |
| コンパイル使用メモリ | 169,900 KB |
| 実行使用メモリ | 187,688 KB |
| 最終ジャッジ日時 | 2024-09-20 14:41:53 |
| 合計ジャッジ時間 | 10,327 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (107 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
string[] str = Console.ReadLine().Split(' ');
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
string s = "";
string t = "3";
for(int i = a; i <= b; i++)
{
s = i.ToString();
int num = s.IndexOf(t, 0);
if (i % 3 == 0)
{
Console.WriteLine(i);
}
else if (num>=0)
{
Console.WriteLine(i);
}
}
}
}
}