結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2017-12-19 06:28:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 379 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 35,316 KB |
最終ジャッジ日時 | 2024-12-17 20:15:50 |
合計ジャッジ時間 | 42,752 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 6 |
ソースコード
n = int(input()) x = list(map(int, input().split())) x = sorted(x) def f(n, x): sum = 0 count = 0 for i in range(n): for j in range(n): if not x[j] == 'done' and not x[i] == 'done': if not abs(x[i] - x[j]) % 2 == 0: x[i] = 'done' x[j] = 'done' for i in x: if type(i) == int: count += 1 return count print(f(n, x))