結果

問題 No.2920 Blood Type
ユーザー pluto77
提出日時 2024-10-25 15:25:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 287 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,696 KB
最終ジャッジ日時 2024-10-25 15:25:31
合計ジャッジ時間 3,563 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
t=input()
l=[s[0]+t[0],s[0]+t[1],s[1]+t[0],s[1]+t[1]]
a,b,ab,o=0,0,0,0
for i in range(4):
 if l[i]=='AA' or l[i]=='AO' or l[i]=='OA':
  a+=1
 elif l[i]=='BB' or l[i]=='BO' or l[i]=='OB':
  b+=1
 elif l[i]=='AB' or l[i]=='BA':
  ab+=1
 else:
   o+=1
print(a*25,b*25,ab*25,o*25)
0