結果
問題 | No.715 集合と二人ゲーム |
ユーザー | convexineq |
提出日時 | 2021-03-14 16:55:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 207 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 301 ms |
コンパイル使用メモリ | 82,036 KB |
実行使用メモリ | 178,580 KB |
最終ジャッジ日時 | 2024-11-06 06:39:42 |
合計ジャッジ時間 | 8,378 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 60 |
ソースコード
*g, = map(int,"0112031103322405223301130211045274011203110332244552330113021104537481120311033224455933011302110453748112031103322") n = int(input()) *a, = map(int,input().split()) a.sort() for i in range(n): a[i] -= i from collections import Counter res = 0 for x in Counter(a).values(): res ^= g[x] if x < 81 else g[81+(x-81)%34] print("First" if res else "Second")