結果

問題 No.406 鴨等間隔の法則
ユーザー 💕💖💞💕💖💞
提出日時 2016-09-09 10:51:12
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 1,021 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 23,788 KB
最終ジャッジ日時 2024-04-24 20:56:34
合計ジャッジ時間 4,731 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
13,608 KB
testcase_01 AC 12 ms
6,272 KB
testcase_02 AC 13 ms
6,400 KB
testcase_03 WA -
testcase_04 AC 151 ms
21,836 KB
testcase_05 AC 56 ms
12,120 KB
testcase_06 AC 60 ms
12,596 KB
testcase_07 AC 61 ms
12,776 KB
testcase_08 AC 149 ms
22,172 KB
testcase_09 AC 165 ms
23,788 KB
testcase_10 AC 67 ms
13,344 KB
testcase_11 AC 126 ms
20,028 KB
testcase_12 AC 81 ms
14,856 KB
testcase_13 AC 77 ms
14,672 KB
testcase_14 AC 140 ms
21,708 KB
testcase_15 WA -
testcase_16 AC 21 ms
7,652 KB
testcase_17 AC 17 ms
6,912 KB
testcase_18 AC 20 ms
7,576 KB
testcase_19 AC 23 ms
7,620 KB
testcase_20 AC 29 ms
8,460 KB
testcase_21 AC 27 ms
8,348 KB
testcase_22 AC 42 ms
10,148 KB
testcase_23 AC 85 ms
15,780 KB
testcase_24 AC 116 ms
17,512 KB
testcase_25 AC 161 ms
23,452 KB
testcase_26 AC 172 ms
21,560 KB
testcase_27 WA -
testcase_28 AC 118 ms
23,780 KB
testcase_29 AC 162 ms
21,560 KB
testcase_30 AC 158 ms
21,084 KB
testcase_31 AC 157 ms
23,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import os

import math
import copy
num = 0
for i, line in enumerate(sys.stdin):
 if i == 0:
   num = int(line)
   continue
 line = line.strip()
 li = map(int ,filter(lambda x:x != '', line.split(" ")))
 li = sorted(li)
 li2 = copy.copy(li)
 li2.insert(0, 0)
 binded = [bind[0] - bind[1] for bind in zip(li, li2)]
 binded.pop(0)
 head = binded[0]
 for b in binded:
   if b != head:
     print "NO"
     sys.exit(0)
 print "YES"
0