結果

問題 No.2920 Blood Type
ユーザー kusirakusirakusirakusira
提出日時 2024-08-25 22:50:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 512 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 82,788 KB
実行使用メモリ 53,972 KB
最終ジャッジ日時 2024-08-25 22:50:08
合計ジャッジ時間 3,310 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,800 KB
testcase_01 AC 35 ms
52,500 KB
testcase_02 AC 39 ms
52,408 KB
testcase_03 AC 36 ms
53,260 KB
testcase_04 AC 36 ms
52,220 KB
testcase_05 AC 40 ms
52,404 KB
testcase_06 AC 37 ms
53,144 KB
testcase_07 AC 44 ms
52,128 KB
testcase_08 AC 36 ms
53,972 KB
testcase_09 AC 35 ms
52,688 KB
testcase_10 AC 34 ms
53,372 KB
testcase_11 AC 39 ms
52,560 KB
testcase_12 AC 35 ms
52,756 KB
testcase_13 AC 35 ms
52,304 KB
testcase_14 AC 36 ms
52,960 KB
testcase_15 AC 36 ms
52,712 KB
testcase_16 AC 35 ms
52,404 KB
testcase_17 AC 35 ms
53,404 KB
testcase_18 AC 36 ms
52,328 KB
testcase_19 AC 36 ms
52,004 KB
testcase_20 AC 35 ms
51,876 KB
testcase_21 AC 36 ms
52,268 KB
testcase_22 AC 36 ms
52,760 KB
testcase_23 AC 34 ms
52,416 KB
testcase_24 AC 35 ms
52,264 KB
testcase_25 AC 34 ms
52,120 KB
testcase_26 AC 34 ms
52,460 KB
testcase_27 AC 35 ms
52,600 KB
testcase_28 AC 35 ms
52,936 KB
testcase_29 AC 34 ms
53,636 KB
testcase_30 AC 38 ms
52,268 KB
testcase_31 AC 43 ms
52,612 KB
testcase_32 AC 35 ms
53,220 KB
testcase_33 AC 35 ms
52,744 KB
testcase_34 AC 36 ms
53,092 KB
testcase_35 AC 35 ms
52,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()

def f(s,t):
    global a,b,ab,o
    if(("A" in s or "A" in t) and ("B" not in s and "B" not in t)):
        a += 25
    elif(("B" in s or "B" in t) and ("A" not in s and "A" not in t)):
        b += 25
    elif(("A" in s or "A" in T) and ("A" in s or "A" in t)):
        ab += 25
    else:
        o += 25

B =  ["AA", "AB", "AO", "BB", "BO", "OO"]
if((S in B and T in B)==False):
	print("WA")
a = 0
b = 0
ab = 0
o = 0
f(S[0],T[0])
f(S[0],T[1])
f(S[1],T[0])
f(S[1],T[1])
print(a,b,ab,o)
0