結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2023-05-08 16:35:31 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 692 bytes |
コンパイル時間 | 12,172 ms |
コンパイル使用メモリ | 167,344 KB |
実行使用メモリ | 181,168 KB |
最終ジャッジ日時 | 2024-11-25 07:57:13 |
合計ジャッジ時間 | 8,165 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 11 WA * 3 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (83 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 S = Console.ReadLine(); string str; for (int i = 0; i < S.Length - 2; i++) { str = S.Substring(i, 3); if (str == "575") { Console.WriteLine("YES"); break; } else if (i == S.Length - 3) { Console.WriteLine("NO"); } else if (!(str == "575")) { continue; } } } } }