結果
| 問題 | No.133 カードゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-06-14 16:13:58 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 40 ms / 5,000 ms | 
| コード長 | 216 bytes | 
| コンパイル時間 | 291 ms | 
| コンパイル使用メモリ | 82,264 KB | 
| 実行使用メモリ | 53,948 KB | 
| 最終ジャッジ日時 | 2024-06-23 00:32:45 | 
| 合計ジャッジ時間 | 1,773 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 19 | 
ソースコード
from itertools import permutations n = int(input()) *a, = map(int,input().split()) *b, = map(int,input().split()) print(sum(sum(u > v for u, v in zip(pa, b)) > n // 2 for pa in permutations(a))/([0, 1, 2, 6, 24][n]))
