結果

問題 No.133 カードゲーム
ユーザー yayo256yayo256
提出日時 2018-11-15 10:38:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,404 KB
最終ジャッジ日時 2023-08-26 01:14:00
合計ジャッジ時間 1,271 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
8,188 KB
testcase_01 AC 12 ms
8,128 KB
testcase_02 AC 13 ms
8,328 KB
testcase_03 AC 12 ms
8,140 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,116 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 14 ms
8,156 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)))) / n**2))
0