KSEF 화이팅
https://www.acmicpc.net/problem/24860
24860번: Counting Antibodies
Immunoglobulins also known as antibodies are protein molecules. Antibodies play one of the key roles in the immune reaction --- they detect harmful foreign agents --- bacteria or viruses --- and help to eliminate them. Every foreign molecule binds with uni
www.acmicpc.net

풀이
문제를 읽는게 귀찮을 것이다.
난 설명 따로 안해주겠다.
시간 복잡도 : O(1)
/* basic setup {{{ */ #include<bits/stdc++.h> #define ff first #define ss second #define pb push_back #define sz(x) ((int)x.size()) #define all(x) x.begin(),x.end() #define compress(x) sort(all(x)), x.erase(unique(all(x)), x.end()) #define fast_io ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0) using namespace std; typedef long long ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef const int ci; const int MOD = 1e9+7; const int INF = 0x3f3f3f3f; const ll LINF = 0x3f3f3f3f3f3f3f3f; /*}}}*/ int main(){ fast_io; ll aa, ab, ba, bb, ca, cb ,cc; cin>>aa>>ab>>ba>>bb>>ca>>cb>>cc; cout<<ca*cb*cc*(aa*ab + ba*bb); cout<<'\n'; }
'백준 문제 해설' 카테고리의 다른 글
백준 25703 포인터 공부 (0) | 2022.11.18 |
---|---|
백준 8558 Silnia (0) | 2022.11.17 |
백준 18398 HOMWRK (0) | 2022.11.16 |
백준 13623 Zero or One (0) | 2022.11.15 |
백준 4714 Lunacy (0) | 2022.11.13 |
백준 16099 Large Sport Facility (0) | 2022.11.12 |
백준 3056 007 (0) | 2022.11.11 |
백준 19851 버거운 버거 (0) | 2022.11.10 |