結果
| 問題 |
No.2920 Blood Type
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-14 13:31:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 649 bytes |
| コンパイル時間 | 2,245 ms |
| コンパイル使用メモリ | 196,668 KB |
| 最終ジャッジ日時 | 2025-02-24 19:27:17 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#include<atcoder/modint>
using namespace atcoder;
using mint=modint998244353;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
string S,T;
cin>>S>>T;
vector<int> AN(4,0);
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
vector<int> P(26,0);
P[S[i]-'A']++;
P[T[j]-'A']++;
if(P[0]==1&&P[1]==1)AN[2]++;
else if(P[0]>0&&P[1]==0)AN[0]++;
else if(P[1]>0&&P[0]==0)AN[1]++;
else AN[3]++;
}
}
for(int i=0;i<4;i++)cout<<AN[i]*25<<" \n"[i==3];
}