Submission #2873380
Source Code Expand
def getinputdata(): # 配列初期化 array_result = [] data = input() array_result.append(data.split(" ")) flg = 1 try: while flg: data = input() if(data != ""): array_result.append(data.split(" ")) else: flg = 0 finally: return array_result arr_data = getinputdata() arr_word=[] for s in arr_data[0]: sposi=0 sposi_before=0 if s.count("@")>1: sposi=s.find("@",sposi_before) for i in range(0,s.count("@")): # print(i,sposi_before,sposi,s[sposi_before:sposi]) if s[sposi_before:sposi]!="": # print(s[sposi_before:sposi]) arr_word.append(s[sposi_before:sposi]) sposi_before=sposi+1 sposi=s.find("@",sposi+1) else: if s[sposi_before:]!="": # print(i,sposi_before,sposi,s[sposi_before:]) arr_word.append(s[sposi_before:]) elif s.count("@")==1: sposi=s.find("@",sposi_before) if s[sposi+1:]!="": # print(s[sposi+1:]) arr_word.append(s[sposi+1:]) #print(arr_word) for v in sorted(set(arr_word)): print(v)
Submission Info
Submission Time | |
---|---|
Task | C - 次世代SNS |
User | senshi2000 |
Language | Python (3.4.3) |
Score | 0 |
Code Size | 1433 Byte |
Status | WA |
Exec Time | 18 ms |
Memory | 3064 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 17 ms | 3064 KB |
sample_02.txt | AC | 17 ms | 3064 KB |
test_01.txt | AC | 17 ms | 3064 KB |
test_02.txt | AC | 17 ms | 3064 KB |
test_03.txt | AC | 18 ms | 3064 KB |
test_04.txt | AC | 17 ms | 3064 KB |
test_05.txt | AC | 17 ms | 3064 KB |
test_06.txt | AC | 17 ms | 3064 KB |
test_07.txt | AC | 17 ms | 3064 KB |
test_08.txt | AC | 17 ms | 3064 KB |
test_09.txt | AC | 18 ms | 3064 KB |
test_10.txt | AC | 17 ms | 3064 KB |
test_11.txt | WA | 17 ms | 3064 KB |
test_12.txt | WA | 17 ms | 3064 KB |
test_13.txt | WA | 17 ms | 3064 KB |
test_14.txt | AC | 17 ms | 3064 KB |
test_15.txt | AC | 17 ms | 3064 KB |
test_16.txt | WA | 18 ms | 3064 KB |
test_17.txt | WA | 18 ms | 3064 KB |
test_18.txt | AC | 17 ms | 3064 KB |
test_19.txt | AC | 18 ms | 3064 KB |
test_20.txt | AC | 17 ms | 3064 KB |