結果

問題 No.558 575検出するやつ
ユーザー GrenacheGrenache
提出日時 2017-08-25 22:21:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 585 bytes
コンパイル時間 2,937 ms
コンパイル使用メモリ 75,988 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2024-04-23 15:25:15
合計ジャッジ時間 5,953 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
54,024 KB
testcase_01 AC 108 ms
54,348 KB
testcase_02 AC 115 ms
54,248 KB
testcase_03 AC 112 ms
53,992 KB
testcase_04 AC 116 ms
53,912 KB
testcase_05 AC 100 ms
52,944 KB
testcase_06 AC 103 ms
53,200 KB
testcase_07 AC 103 ms
52,872 KB
testcase_08 AC 106 ms
53,908 KB
testcase_09 AC 108 ms
53,756 KB
testcase_10 AC 110 ms
53,748 KB
testcase_11 AC 100 ms
52,856 KB
testcase_12 AC 109 ms
53,996 KB
testcase_13 AC 93 ms
52,628 KB
testcase_14 AC 109 ms
53,976 KB
testcase_15 AC 111 ms
52,824 KB
testcase_16 AC 109 ms
53,916 KB
testcase_17 AC 97 ms
52,616 KB
testcase_18 AC 100 ms
52,688 KB
testcase_19 AC 108 ms
53,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder558 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		String n = sc.next();

		if (n.contains("575")) {
			pr.println("YES");
		} else {
			pr.print("NO");
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0