結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2020-12-03 07:38:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 81 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 497 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 87,040 KB |
最終ジャッジ日時 | 2024-09-13 15:13:18 |
合計ジャッジ時間 | 1,532 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
# coding: utf-8# Your code here!import sysread = sys.stdin.readreadline = sys.stdin.readlinen = int(readline())*x, = map(int,readline().split())ans = 0for i in x:if i%2==0: ans += 1else: ans -= 1print(abs(ans))