結果
| 問題 | No.2920 Blood Type | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-10-12 15:07:13 | 
| 言語 | C++17(clang) (17.0.6 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 693 bytes | 
| コンパイル時間 | 5,315 ms | 
| コンパイル使用メモリ | 163,028 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-12 15:07:20 | 
| 合計ジャッジ時間 | 3,694 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 36 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
    string S, T;
    cin >> S >> T;
    vector<int> cnt(4, 0);
    for(int i = 0; i < 2; ++i){
        for(int j = 0; j < 2; ++j){
            if(S[i] == 'A'){
                if(T[j] == 'B') cnt[2]++;
                else cnt[0]++;
            }
            if(S[i] == 'B'){
                if(T[j] == 'A') cnt[2]++;
                else cnt[1]++;
            }
            if(S[i] == 'O'){
                if(T[j] == 'A') cnt[0]++;
                else if(T[j] == 'B') cnt[1]++;
                else cnt[3]++;
            }
        }
    }
    for(int i = 0; i < 4; ++i){
        cout << cnt[i]*25 << '\n';
    }
    return 0;
}
            
            
            
        