結果
問題 | No.133 カードゲーム |
ユーザー | yayo256 |
提出日時 | 2018-11-15 10:37:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 10,564 KB |
実行使用メモリ | 8,416 KB |
最終ジャッジ日時 | 2023-08-26 01:13:58 |
合計ジャッジ時間 | 1,264 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
8,244 KB |
testcase_01 | AC | 14 ms
8,064 KB |
testcase_02 | AC | 16 ms
8,160 KB |
testcase_03 | AC | 16 ms
8,076 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,096 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 14 ms
8,160 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
ソースコード
from itertools import permutations, product def int_or_float(n): return int(n) if n%1 == 0 else n n = int(input()) a, b = [list(map(int, input().split(" "))) for _ in range(2)] print(int_or_float(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))