結果
問題 |
No.2920 Blood Type
|
ユーザー |
![]() |
提出日時 | 2024-10-14 00:05:47 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 615 bytes |
コンパイル時間 | 3,156 ms |
コンパイル使用メモリ | 248,368 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-14 00:05:52 |
合計ジャッジ時間 | 4,063 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { string s, t; cin >> s >> t; int a = 0, b = 0, o = 0, ab = 0; rep(i, 2) rep(j, 2) { set<char> st = { s[i], t[j] }; if (st.contains('A') && st.contains('B')) ab++; else if (st.contains('A')) a++; else if (st.contains('B')) b++; else o++; } printf("%d %d %d %d\n", a * 25, b * 25, ab * 25, o * 25); return 0; }