結果
| 問題 |
No.2920 Blood Type
|
| コンテスト | |
| ユーザー |
Andrew8128
|
| 提出日時 | 2024-10-12 14:33:23 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 832 bytes |
| コンパイル時間 | 2,921 ms |
| コンパイル使用メモリ | 245,364 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 14:33:30 |
| 合計ジャッジ時間 | 3,734 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 9 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, x, y) for (auto i = (x); i < (y); i++)
#define RREP(i, x, y) for (auto i = (y) - 1; (x) <= i; i--)
#define ALL(x) (x).begin(), (x).end()
#pragma GCC optimize("O3")
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
string S, T;
cin >> S >> T;
int ans[] = {0, 0, 0, 0};
REP(i, 0, 2){
REP(j, 0, 2){
int a = 0, b = 0;
if(S[i] == 'A')a++;
if(S[i] == 'B')b++;
if(T[i] == 'A')a++;
if(T[i] == 'B')b++;
if(a && b)ans[2] += 25;
else if(a)ans[0] += 25;
else if(b)ans[1] += 25;
else ans[3] += 25;
}
}
cout << ans[0] << " " << ans[1] << " " << ans[2] << " " << ans[3] << "\n";
return 0;
}
/*
File : ~/yukicoder/midoriika_3rd/B.cpp
Date : 2024/10/12
Time : 14:30:47
*/
Andrew8128