結果
| 問題 | No.133 カードゲーム |
| コンテスト | |
| ユーザー |
taba
|
| 提出日時 | 2016-04-17 03:17:24 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 5,000 ms |
| コード長 | 299 bytes |
| 記録 | |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 77,692 KB |
| 最終ジャッジ日時 | 2025-12-03 20:28:11 |
|
ジャッジサーバー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))
taba