提出 #36977670


ソースコード 拡げる

S = str(input())
T = str(input())
difnum = len(T)-len(S)

for _ in range(difnum):
    S += 'N'

cnt = 0
for i in range(len(S)):
    cnt += 1
    if S[i] != T[i]:
        print(cnt)
        break

提出情報

提出日時
問題 C - Extra Character
ユーザ savian12345
言語 Python (3.8.2)
得点 300
コード長 208 Byte
結果 AC
実行時間 105 ms
メモリ 10272 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 300 / 300
結果
AC × 3
AC × 27
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
random_01.txt AC 42 ms 10016 KiB
random_02.txt AC 35 ms 9276 KiB
random_03.txt AC 42 ms 10164 KiB
random_04.txt AC 36 ms 8972 KiB
random_05.txt AC 60 ms 10100 KiB
random_06.txt AC 81 ms 9912 KiB
random_07.txt AC 53 ms 10272 KiB
random_08.txt AC 36 ms 9172 KiB
random_09.txt AC 51 ms 10204 KiB
random_10.txt AC 63 ms 10212 KiB
random_11.txt AC 94 ms 10184 KiB
random_12.txt AC 35 ms 9020 KiB
random_13.txt AC 95 ms 10016 KiB
random_14.txt AC 100 ms 10008 KiB
random_15.txt AC 17 ms 8804 KiB
random_16.txt AC 19 ms 8800 KiB
random_17.txt AC 105 ms 10112 KiB
random_18.txt AC 100 ms 10208 KiB
random_19.txt AC 23 ms 10016 KiB
random_20.txt AC 21 ms 10224 KiB
random_21.txt AC 97 ms 10100 KiB
random_22.txt AC 97 ms 10148 KiB
random_23.txt AC 19 ms 10268 KiB
random_24.txt AC 18 ms 10272 KiB
sample_01.txt AC 21 ms 8800 KiB
sample_02.txt AC 20 ms 9012 KiB
sample_03.txt AC 18 ms 8888 KiB