結果
| 問題 |
No.133 カードゲーム
|
| コンテスト | |
| ユーザー |
htkb
|
| 提出日時 | 2018-08-30 09:23:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 303 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-13 19:48:36 |
| 合計ジャッジ時間 | 1,778 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
from itertools import permutations, product N = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) result = [sum(1 if _a>_b else -1 if _a<_b else 0 for _a, _b in zip(al, bl)) > 0 for al, bl in product(permutations(a), permutations(b))] print(sum(result) / len(result))
htkb