結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-28 13:31:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 47 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 15,048 KB |
| 最終ジャッジ日時 | 2024-10-02 06:04:36 |
| 合計ジャッジ時間 | 2,333 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 4 |
ソースコード
#coding:utf-8 N=input() X=map(int,raw_input().split()) X.sort() s=[X[0]] for i in range(1,N): if X[i]-s[i-1]==2: s.append(X[i]) else: s.append(0) if N%2==0: if X==s: print N else: print 0 else: print 1
a_ten