結果
問題 |
No.558 575検出するやつ
|
ユーザー |
![]() |
提出日時 | 2023-05-08 16:39:08 |
言語 | C# (.NET 8.0.404) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 793 bytes |
コンパイル時間 | 15,105 ms |
コンパイル使用メモリ | 167,292 KB |
実行使用メモリ | 182,524 KB |
最終ジャッジ日時 | 2024-11-25 07:59:15 |
合計ジャッジ時間 | 8,061 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 14 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (111 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; if(S.Length <= 2) { Console.WriteLine("NO"); } 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; } } } } }