Submission #3603531
Source Code Expand
n = int(input()) words = ['']*n for i in range(n): words[i] = input() for i in range(len(words) - 1): if words.count(words[i]) > 1 or words[i][-1] != words[i+1][0]: print('No') exit() print('Yes')
Submission Info
Submission Time | |
---|---|
Task | B - Shiritori |
User | vjudge5 |
Language | Python (2.7.6) |
Score | 0 |
Code Size | 220 Byte |
Status | RE |
Exec Time | 12 ms |
Memory | 2568 KB |
Judge Result
Set Name | All | Sample | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 200 | 0 / 0 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
All | max_1, max_2, max_3, max_4, min_1, no1_1, no1_2, no2_1, no2_2, random_1, random_2, sample_01, sample_02, sample_03, sample_04, yes_1, yes_2 |
Sample | sample_01, sample_02, sample_03, sample_04 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
max_1 | RE | 12 ms | 2568 KB |
max_2 | RE | 11 ms | 2568 KB |
max_3 | RE | 11 ms | 2568 KB |
max_4 | RE | 11 ms | 2568 KB |
min_1 | RE | 11 ms | 2568 KB |
no1_1 | RE | 11 ms | 2568 KB |
no1_2 | RE | 11 ms | 2568 KB |
no2_1 | RE | 11 ms | 2568 KB |
no2_2 | RE | 11 ms | 2568 KB |
random_1 | RE | 11 ms | 2568 KB |
random_2 | RE | 11 ms | 2568 KB |
sample_01 | RE | 11 ms | 2568 KB |
sample_02 | RE | 11 ms | 2568 KB |
sample_03 | RE | 11 ms | 2568 KB |
sample_04 | RE | 11 ms | 2568 KB |
yes_1 | RE | 11 ms | 2568 KB |
yes_2 | RE | 11 ms | 2568 KB |