結果

問題 No.558 575検出するやつ
ユーザー GrenacheGrenache
提出日時 2017-08-25 22:21:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 585 bytes
コンパイル時間 3,302 ms
コンパイル使用メモリ 71,672 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-08-05 18:41:03
合計ジャッジ時間 6,481 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,520 KB
testcase_01 AC 115 ms
55,340 KB
testcase_02 AC 115 ms
55,436 KB
testcase_03 AC 119 ms
55,780 KB
testcase_04 AC 115 ms
55,752 KB
testcase_05 AC 116 ms
55,816 KB
testcase_06 AC 114 ms
54,240 KB
testcase_07 AC 118 ms
55,676 KB
testcase_08 AC 115 ms
55,392 KB
testcase_09 AC 117 ms
55,792 KB
testcase_10 AC 117 ms
55,896 KB
testcase_11 AC 116 ms
55,888 KB
testcase_12 AC 118 ms
55,592 KB
testcase_13 AC 113 ms
55,676 KB
testcase_14 AC 113 ms
55,780 KB
testcase_15 AC 117 ms
56,028 KB
testcase_16 AC 118 ms
56,196 KB
testcase_17 AC 117 ms
55,732 KB
testcase_18 AC 117 ms
55,596 KB
testcase_19 AC 114 ms
55,800 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