結果
| 問題 |
No.558 575検出するやつ
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-31 16:26:46 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 519 bytes |
| コンパイル時間 | 9,666 ms |
| コンパイル使用メモリ | 171,844 KB |
| 実行使用メモリ | 187,048 KB |
| 最終ジャッジ日時 | 2025-03-31 16:26:59 |
| 合計ジャッジ時間 | 11,220 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 14 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (126 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine();
if (chackStr(str)) {
Console.WriteLine("YES");
}else{
Console.WriteLine("NO");
}
}
private static bool chackStr(string str)
{
bool result = false;
for(int i= 0;i < str.Length-2; i++)
{
if(str.Substring(i,3) == "575")
{
result = true; break;
}
}
return result;
}
}
Maeda