結果
| 問題 |
No.2920 Blood Type
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 17:09:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 613 bytes |
| コンパイル時間 | 2,191 ms |
| コンパイル使用メモリ | 196,152 KB |
| 最終ジャッジ日時 | 2025-02-24 18:48:59 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s,t;
cin >> s >> t;
vector<int> ans(4,0);
rep(i,2){
rep(j,2){
char a = s[i];
char b = t[j];
if(a>b) swap(a,b);
if(a=='A' && b!='B') ans[0]+=25;
else if(a=='B') ans[1] += 25;
else if(string(1,a)+string(1,b)=="AB") ans[2] += 25;
else ans[3] += 25;
}
}
rep(i,4) cout << ans[i] <<" ";
cout << endl;
}