結果

問題 No.197 手品
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-05-03 22:44:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 921 bytes
コンパイル時間 3,454 ms
コンパイル使用メモリ 73,260 KB
実行使用メモリ 58,672 KB
最終ジャッジ日時 2023-09-09 16:36:51
合計ジャッジ時間 11,087 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,704 KB
testcase_01 AC 123 ms
55,752 KB
testcase_02 AC 125 ms
55,696 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 122 ms
53,876 KB
testcase_06 AC 123 ms
56,008 KB
testcase_07 AC 123 ms
56,092 KB
testcase_08 AC 121 ms
53,596 KB
testcase_09 AC 123 ms
55,656 KB
testcase_10 AC 123 ms
56,136 KB
testcase_11 AC 121 ms
55,676 KB
testcase_12 AC 122 ms
55,896 KB
testcase_13 AC 123 ms
55,376 KB
testcase_14 AC 121 ms
55,660 KB
testcase_15 AC 122 ms
56,004 KB
testcase_16 AC 121 ms
55,984 KB
testcase_17 AC 122 ms
55,560 KB
testcase_18 AC 121 ms
55,344 KB
testcase_19 AC 123 ms
55,864 KB
testcase_20 AC 122 ms
56,240 KB
testcase_21 AC 121 ms
55,328 KB
testcase_22 AC 118 ms
56,060 KB
testcase_23 AC 123 ms
56,044 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 122 ms
55,980 KB
testcase_28 WA -
testcase_29 AC 122 ms
55,568 KB
testcase_30 AC 123 ms
56,068 KB
testcase_31 AC 122 ms
55,376 KB
testcase_32 AC 121 ms
55,828 KB
testcase_33 AC 123 ms
55,508 KB
testcase_34 WA -
testcase_35 AC 121 ms
55,332 KB
testcase_36 AC 121 ms
55,432 KB
testcase_37 AC 121 ms
55,944 KB
testcase_38 WA -
testcase_39 AC 120 ms
56,004 KB
testcase_40 AC 121 ms
56,360 KB
testcase_41 AC 119 ms
56,100 KB
testcase_42 AC 120 ms
55,812 KB
testcase_43 WA -
testcase_44 AC 120 ms
55,944 KB
testcase_45 AC 121 ms
55,664 KB
testcase_46 AC 119 ms
55,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.197 手品

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No0197 {
    
    static final Scanner in = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        char[] sb = in.next().toCharArray();
        long n = in.nextLong();
        char[] sa = in.next().toCharArray();
        int cnt = 0;
        for (int i=0; i<3; i++) {
            if (sb[i] != sa[i]) cnt++;
        }
        out.println(cnt>n?"SUCCESS":"FAILURE");
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        in.close();
        out.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0