結果

問題 No.558 575検出するやつ
ユーザー yamax3232yamax3232
提出日時 2018-03-16 12:25:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 1,932 ms
コンパイル使用メモリ 71,632 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-08-23 11:44:26
合計ジャッジ時間 5,635 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,620 KB
testcase_01 AC 116 ms
55,864 KB
testcase_02 AC 116 ms
55,712 KB
testcase_03 AC 117 ms
55,712 KB
testcase_04 AC 118 ms
56,112 KB
testcase_05 AC 118 ms
55,500 KB
testcase_06 AC 118 ms
55,632 KB
testcase_07 AC 119 ms
55,748 KB
testcase_08 AC 119 ms
55,704 KB
testcase_09 AC 120 ms
55,652 KB
testcase_10 AC 118 ms
55,660 KB
testcase_11 AC 120 ms
55,592 KB
testcase_12 AC 120 ms
55,616 KB
testcase_13 AC 119 ms
55,636 KB
testcase_14 AC 119 ms
55,620 KB
testcase_15 AC 124 ms
55,668 KB
testcase_16 AC 122 ms
56,128 KB
testcase_17 AC 119 ms
55,644 KB
testcase_18 AC 117 ms
55,616 KB
testcase_19 AC 119 ms
55,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		String s=kb.next();
		String ret="NO";
		for(int i=0;i<s.length();i++){
			if(i+2<s.length()){
				if(s.charAt(i)=='5'&&s.charAt(i+1)=='7'
						&&s.charAt(i+2)=='5'){
					ret="YES";
					break;
				}
			}

		}
		System.out.println(ret);
	}

}
0