QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#688264 | #5599. Repetitive Song | Tenshi# | WA | 93ms | 24644kb | Python3 | 183b | 2024-10-30 01:48:11 | 2024-10-30 01:48:11 |
Judging History
answer
n = int(input())
mp = {}
out = float('inf')
for i in range(n):
word = input().strip()
if word in mp:
out = min(out, i-mp[word])
mp[word] = i
print(n-out)
详细
Test #1:
score: 100
Accepted
time: 12ms
memory: 10592kb
input:
10 bow bow chick chicka chicka bow bow chick chicka chicka
output:
9
result:
ok single line: '9'
Test #2:
score: 0
Accepted
time: 0ms
memory: 10744kb
input:
31 head shoulders knees and toes knees and toes head shoulders knees and toes knees and toes eyes and ears and mouth and nose head shoulders knees and toes knees and toes
output:
29
result:
ok single line: '29'
Test #3:
score: 0
Accepted
time: 11ms
memory: 10640kb
input:
297 sitting on a park bench eyeing little girls with bad intent snots running down his nose greasy fingers smearing shabby clothes hey aqualung drying in the cold sun watching as the frilly panties run hey aqualung feeling like a dead duck spitting out pieces of his broken luck oh aqualung sun strea...
output:
296
result:
ok single line: '296'
Test #4:
score: 0
Accepted
time: 93ms
memory: 10588kb
input:
100000 down up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up up ...
output:
99999
result:
ok single line: '99999'
Test #5:
score: 0
Accepted
time: 69ms
memory: 24644kb
input:
100000 bigone aaaaaaaaaaaaaaaaaaaa baaaaaaaaaaaaaaaaaaa caaaaaaaaaaaaaaaaaaa daaaaaaaaaaaaaaaaaaa eaaaaaaaaaaaaaaaaaaa faaaaaaaaaaaaaaaaaaa gaaaaaaaaaaaaaaaaaaa haaaaaaaaaaaaaaaaaaa iaaaaaaaaaaaaaaaaaaa jaaaaaaaaaaaaaaaaaaa kaaaaaaaaaaaaaaaaaaa laaaaaaaaaaaaaaaaaaa maaaaaaaaaaaaaaaaaaa naaaaaaaaaaaa...
output:
1
result:
ok single line: '1'
Test #6:
score: 0
Accepted
time: 16ms
memory: 10792kb
input:
824 really dont mind if you sit this one out my words but a whisper your deafness a shout i may make you feel but i cant make you think your sperms in the gutter your loves in the sink so you ride yourselves over the fields and you make all your animal deals and your wise men dont know how it feels ...
output:
823
result:
ok single line: '823'
Test #7:
score: 0
Accepted
time: 88ms
memory: 11476kb
input:
100000 the iliad by homer as translated by samuel butler 1898 scroll 1 sing o goddess the anger did it send hurrying down to hades and many a hero did it yield a prey to dogs and vultures for so was the will of zeus fulfilled from the day on which the son of atreus king of men and great achilles fir...
output:
99999
result:
ok single line: '99999'
Test #8:
score: -100
Wrong Answer
time: 14ms
memory: 10704kb
input:
1 onelongwordtestcasea
output:
-inf
result:
wrong answer 1st lines differ - expected: '0', found: '-inf'