Submission #7943204
Source Code Expand
import os,sys,random n=int(input()) A=input();B=input() for i in range(n,-1,-1): if A[n-i:]==B[:i]: print(n+n-i) break
Submission Info
Submission Time | |
---|---|
Task | A - Prefix and Suffix |
User | test12345 |
Language | PyPy3 (2.4.0) |
Score | 200 |
Code Size | 123 Byte |
Status | AC |
Exec Time | 201 ms |
Memory | 39280 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 201 ms | 39280 KB |
0_01.txt | AC | 185 ms | 38768 KB |
0_02.txt | AC | 182 ms | 38768 KB |
1_00.txt | AC | 181 ms | 38896 KB |
1_01.txt | AC | 181 ms | 38768 KB |
1_02.txt | AC | 179 ms | 38768 KB |
1_03.txt | AC | 181 ms | 38768 KB |
1_04.txt | AC | 186 ms | 38768 KB |
1_05.txt | AC | 181 ms | 38768 KB |