結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 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 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
S = input()T = input()def f(s,t):global a,b,ab,oif(("A" in s or "A" in t) and ("B" not in s and "B" not in t)):a += 25elif(("B" in s or "B" in t) and ("A" not in s and "A" not in t)):b += 25elif(("A" in s or "A" in T) and ("A" in s or "A" in t)):ab += 25else:o += 25B = ["AA", "AB", "AO", "BB", "BO", "OO"]if((S in B and T in B)==False):print("WA")a = 0b = 0ab = 0o = 0f(S[0],T[0])f(S[0],T[1])f(S[1],T[0])f(S[1],T[1])print(a,b,ab,o)