結果
問題 | No.133 カードゲーム |
ユーザー | yayo256 |
提出日時 | 2018-11-15 10:35:47 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 10,704 KB |
実行使用メモリ | 8,308 KB |
最終ジャッジ日時 | 2023-08-26 01:13:47 |
合計ジャッジ時間 | 1,614 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 14 ms
8,108 KB |
testcase_01 | AC | 13 ms
8,136 KB |
testcase_02 | AC | 13 ms
8,196 KB |
testcase_03 | AC | 13 ms
8,136 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 13 ms
8,228 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 13 ms
8,172 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
from itertools import permutations, product n = int(input()) a, b = [list(map(int, input().split(" "))) for _ in range(2)] print(sum(sum(a_i>b_i for a_i, b_i in zip(*x)) > n/2 for x in list(product(permutations(a, n), permutations(b, n)))) / 2**n)