結果

問題 No.558 575検出するやつ
ユーザー funakoshifunakoshi
提出日時 2019-06-28 14:24:13
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 721 bytes
コンパイル時間 1,913 ms
コンパイル使用メモリ 105,716 KB
実行使用メモリ 22,548 KB
最終ジャッジ日時 2023-09-14 21:24:24
合計ジャッジ時間 3,870 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,428 KB
testcase_01 AC 49 ms
22,508 KB
testcase_02 AC 49 ms
20,436 KB
testcase_03 AC 49 ms
20,620 KB
testcase_04 AC 48 ms
20,488 KB
testcase_05 AC 48 ms
18,404 KB
testcase_06 AC 48 ms
20,380 KB
testcase_07 AC 49 ms
20,612 KB
testcase_08 AC 49 ms
20,452 KB
testcase_09 AC 50 ms
20,616 KB
testcase_10 AC 49 ms
20,492 KB
testcase_11 AC 48 ms
18,420 KB
testcase_12 AC 49 ms
20,508 KB
testcase_13 AC 49 ms
20,496 KB
testcase_14 AC 49 ms
20,528 KB
testcase_15 AC 50 ms
20,568 KB
testcase_16 AC 49 ms
20,400 KB
testcase_17 AC 49 ms
22,548 KB
testcase_18 AC 48 ms
20,456 KB
testcase_19 AC 49 ms
20,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            bool flg = false;
            for(int i=0;i<input.Length-2;i++)
            {
                string temp = input.Substring(i, 3);
                if(temp=="575")
                {
                    flg = true;
                }
            }
            if(flg==true)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
        }
    }
}
0