結果
問題 |
No.2920 Blood Type
|
ユーザー |
👑 |
提出日時 | 2024-09-25 09:38:13 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 582 bytes |
コンパイル時間 | 13,483 ms |
コンパイル使用メモリ | 380,288 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-25 09:38:30 |
合計ジャッジ時間 | 15,085 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
use proconio::input; fn main() { input! { s_str: String, t_str: String, }; let mut a = 0; let mut b = 0; let mut ab = 0; let mut o = 0; for s in s_str.chars() { for t in t_str.chars() { let baby = vec![s, t]; match (baby.contains(&'A'), baby.contains(&'B')) { (true, false) => a += 25, (false, true) => b += 25, (true, true) => ab += 25, (false, false) => o += 25, } } } println!("{} {} {} {}", a, b, ab, o); }