結果

問題 No.547 未知の言語
ユーザー sue_charosue_charo
提出日時 2017-07-28 22:24:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 765 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,932 KB
実行使用メモリ 8,980 KB
最終ジャッジ日時 2023-09-08 09:04:48
合計ジャッジ時間 2,090 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
8,776 KB
testcase_01 AC 23 ms
8,856 KB
testcase_02 AC 21 ms
8,820 KB
testcase_03 AC 22 ms
8,784 KB
testcase_04 AC 21 ms
8,936 KB
testcase_05 AC 21 ms
8,820 KB
testcase_06 AC 22 ms
8,928 KB
testcase_07 AC 21 ms
8,932 KB
testcase_08 AC 21 ms
8,824 KB
testcase_09 AC 21 ms
8,888 KB
testcase_10 AC 22 ms
8,884 KB
testcase_11 AC 21 ms
8,864 KB
testcase_12 AC 22 ms
8,828 KB
testcase_13 AC 21 ms
8,756 KB
testcase_14 AC 22 ms
8,864 KB
testcase_15 AC 22 ms
8,936 KB
testcase_16 AC 22 ms
8,884 KB
testcase_17 AC 22 ms
8,892 KB
testcase_18 AC 21 ms
8,824 KB
testcase_19 AC 22 ms
8,764 KB
testcase_20 AC 22 ms
8,928 KB
testcase_21 AC 22 ms
8,884 KB
testcase_22 AC 22 ms
8,884 KB
testcase_23 AC 22 ms
8,828 KB
testcase_24 AC 22 ms
8,888 KB
testcase_25 AC 22 ms
8,976 KB
testcase_26 AC 22 ms
8,832 KB
testcase_27 AC 22 ms
8,760 KB
testcase_28 AC 22 ms
8,884 KB
testcase_29 AC 22 ms
8,980 KB
testcase_30 AC 22 ms
8,864 KB
testcase_31 AC 22 ms
8,880 KB
testcase_32 AC 22 ms
8,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import collections, copy, heapq, itertools, math, sys
sys.setrecursionlimit(10 ** 7)
INF = 10 ** 20
MOD = 10 ** 9 + 7


def II(): return int(input())
def ILI(): return list(map(int, input().split()))
def IAI(LINE): return [ILI() for __ in range(LINE)]
def IDI(): return {key: value for key, value in ILI()}


def read():
    N = II()
    S = list(map(str, input().split()))
    T = list(map(str, input().split()))
    return N, S, T


def solve(N, S, T):
    ans = ""
    l_ans = []
    for i, (s, t) in enumerate(zip(S, T)):
        if s != t:
            l_ans = [i + 1, s, t]
            break
    ans = "\n".join(map(str, l_ans))
    return ans


def main():
    params = read()
    print(solve(*params))


if __name__ == "__main__":
    main()
0