結果
問題 | No.558 575検出するやつ |
ユーザー |
|
提出日時 | 2017-11-09 17:56:20 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 751 ms |
コンパイル使用メモリ | 103,040 KB |
実行使用メモリ | 17,408 KB |
最終ジャッジ日時 | 2024-11-24 07:28:26 |
合計ジャッジ時間 | 1,961 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 15 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Program { public void Solve() { string s = Console.ReadLine(); for (int i = 2; i < s.Length; i++) { if (s.Substring(i - 2, 3).Equals("575")) { Console.WriteLine("YES"); return; } } Console.WriteLine("NO"); } public static void Main(string[] args) { Program program = new Program(); program.Solve(); } }