結果

問題 No.558 575検出するやつ
ユーザー takeya_okinotakeya_okino
提出日時 2017-09-23 15:21:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 74,452 KB
実行使用メモリ 41,584 KB
最終ジャッジ日時 2024-04-26 15:32:19
合計ジャッジ時間 5,655 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,132 KB
testcase_01 AC 121 ms
41,296 KB
testcase_02 AC 126 ms
41,160 KB
testcase_03 AC 112 ms
41,540 KB
testcase_04 AC 113 ms
40,128 KB
testcase_05 AC 110 ms
41,280 KB
testcase_06 AC 126 ms
41,240 KB
testcase_07 AC 126 ms
41,584 KB
testcase_08 AC 126 ms
41,140 KB
testcase_09 AC 107 ms
39,860 KB
testcase_10 AC 121 ms
41,080 KB
testcase_11 AC 114 ms
41,456 KB
testcase_12 AC 111 ms
40,244 KB
testcase_13 AC 121 ms
40,940 KB
testcase_14 AC 110 ms
40,300 KB
testcase_15 AC 108 ms
40,200 KB
testcase_16 AC 121 ms
41,120 KB
testcase_17 AC 115 ms
41,280 KB
testcase_18 AC 119 ms
41,340 KB
testcase_19 AC 106 ms
41,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String ans = "NO";
    if(s.matches(".*" + "575" + ".*")) ans = "YES";
    System.out.println(ans);
  }
}
0