結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-24 13:16:05 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 77,332 KB |
| 最終ジャッジ日時 | 2025-12-03 21:36:26 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 6 |
ソースコード
#!/usr/bin/python # -*- coding: utf-8 -*- N = int(raw_input()) arr = map(int, raw_input().split()) arr.sort() ### sub def subcheck(i): if arr[i+1] % 2 == arr[i+2] % 2: sub(i+1) else: arr.pop(i+1) arr.pop(i+1) ### main while len(arr) >= 2: if arr[0] % 2 == arr[1] % 2: subcheck(0) else: arr.pop(0) arr.pop(0) print len(arr)