結果

問題 No.133 カードゲーム
ユーザー Shoya SATOShoya SATO
提出日時 2020-10-02 13:23:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 8,184 KB
最終ジャッジ日時 2023-09-22 15:50:08
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,836 KB
testcase_01 AC 15 ms
7,840 KB
testcase_02 AC 15 ms
8,076 KB
testcase_03 AC 16 ms
8,184 KB
testcase_04 AC 16 ms
7,784 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,840 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,800 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 15 ms
7,772 KB
testcase_14 AC 16 ms
7,728 KB
testcase_15 AC 15 ms
7,836 KB
testcase_16 WA -
testcase_17 AC 15 ms
8,184 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(input().split())
b=list(input().split())
a_win=0
a_memo=0

if min(a)>=max(b):
    print('1')
    exit()
if min(b)>=max(a):
    print('0')
    exit()


for aa in a:
  for bb in b:
    if aa>=bb:
      a_memo+=1
  if a_memo > n:
    a_win+=1
  



print(round(a_win/n,4))
0