結果
問題 | No.133 カードゲーム |
ユーザー |
![]() |
提出日時 | 2020-07-19 20:01:15 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 82,276 KB |
実行使用メモリ | 60,672 KB |
最終ジャッジ日時 | 2024-12-16 09:31:08 |
合計ジャッジ時間 | 2,563 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
from itertools import *n=int(input())g=0w=0a=list(map(int,input().split()))b=list(map(int,input().split()))for j in permutations(a):for k in permutations(b):g+=1aa=0bb=0for i in range(n):if j[i]>k[i]:aa+=1else:bb+=1if aa>bb:w+=1print(w/g)