結果
| 問題 |
No.2920 Blood Type
|
| コンテスト | |
| ユーザー |
momoyuu
|
| 提出日時 | 2024-10-13 17:16:42 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 672 bytes |
| コンパイル時間 | 1,138 ms |
| コンパイル使用メモリ | 94,164 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 17:16:46 |
| 合計ジャッジ時間 | 1,927 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
vector<int> ans(4,0);
string s,t;
cin>>s>>t;
for(int i = 0;i<2;i++){
for(int j = 0;j<2;j++){
if((s[i]=='A'||t[j]=='A')&&(s[i]!='B'&&t[j]!='B')) ans[0] += 25;
else if((s[i]=='B'||t[j]=='B')&&(s[i]!='A'&&t[j]!='A')) ans[1] += 25;
else if((s[i]=='A'||t[j]=='A')&&(s[i]=='B'||t[j]=='B')) ans[2] += 25;
else ans[3] += 25;
}
}
for(int i = 0;i<4;i++){
if(i) cout<<" ";
cout<<ans[i];
}
cout<<endl;
}
momoyuu