結果
| 問題 | No.133 カードゲーム | 
| コンテスト | |
| ユーザー |  taba | 
| 提出日時 | 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 itertools n=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=0 for k in range(n): if i[k]>j[k]: x+=1 else: x-=1 if x>0: w+=1 print w/(len(a)*len(b))
