結果
問題 | No.2920 Blood Type |
ユーザー |
![]() |
提出日時 | 2024-11-30 22:11:32 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 3,967 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 22:11:40 |
合計ジャッジ時間 | 5,105 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
import strutilslets, t = readLine stdinvarans = [0, 0, 0, 0] # a b ab ofor x in s:for y in t:letset = {x, y}if set == {'O'}:ans[3].inc 25elif set == {'A', 'B'}:ans[2].inc 25elif 'A' in set:ans[0].inc 25else:ans[1].inc 25echo ans.join " "