結果
| 問題 | No.133 カードゲーム |
| コンテスト | |
| ユーザー |
htkb
|
| 提出日時 | 2018-08-30 09:42:56 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 5,000 ms |
| + 637µs | |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,996 KB |
| 最終ジャッジ日時 | 2026-08-26 10:59:33 |
| 合計ジャッジ時間 | 3,846 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
from itertools import permutations 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(ap, b)) > 0 for ap in permutations(a)] print(sum(result) / len(result))
htkb