結果
問題 | No.133 カードゲーム |
ユーザー |
![]() |
提出日時 | 2016-04-17 03:17:24 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-06-25 03:43:35 |
合計ジャッジ時間 | 1,358 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
import itertoolsn=input()a=map(int,raw_input().split())b=map(int,raw_input().split())w=0.a=list(itertools.permutations(a))b=list(itertools.permutations(b))for i in a:for j in b:x=0for k in range(n):if i[k]>j[k]:x+=1else:x-=1if x>0:w+=1print w/(len(a)*len(b))