Submission #3550868
Source Code Expand
import sys n = int (input()) words = [] for i in range (n) : words.append(input()) for x in range(len(words)): if words.count(words[x]) > 1 or words[x+1][0] != words[x][-1]: print("No") sys.exit() else: "Yes"
Submission Info
Submission Time | |
---|---|
Task | B - Shiritori |
User | vjudge4 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 244 Byte |
Status | RE |
Exec Time | 17 ms |
Memory | 3060 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 | AC | 17 ms | 3060 KB |
max_2 | RE | 17 ms | 2940 KB |
max_3 | AC | 17 ms | 2940 KB |
max_4 | AC | 17 ms | 2940 KB |
min_1 | AC | 17 ms | 3060 KB |
no1_1 | AC | 17 ms | 2940 KB |
no1_2 | AC | 17 ms | 2940 KB |
no2_1 | AC | 17 ms | 2940 KB |
no2_2 | AC | 17 ms | 3060 KB |
random_1 | AC | 17 ms | 2940 KB |
random_2 | AC | 17 ms | 2940 KB |
sample_01 | AC | 17 ms | 2940 KB |
sample_02 | RE | 17 ms | 3060 KB |
sample_03 | AC | 17 ms | 3060 KB |
sample_04 | AC | 17 ms | 3060 KB |
yes_1 | RE | 17 ms | 2940 KB |
yes_2 | RE | 17 ms | 2940 KB |