2024-07-01から1ヶ月間の記事一覧
Toyota Programming Contest 2024#7(AtCoder Beginner Contest 362) - AtCoder A - Buy a Pen #include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; string c; cin >> c; int ans = 1e9; if (c != "Red") ans = min(ans,r); if (c</bits/stdc++.h>…
Denso Create Programming Contest 2024(AtCoder Beginner Contest 361) - AtCoder B - Intesection of Cuboids x,y,z それぞれの交差は独立に考えて良い #include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0;i<n;i++) #define endl '\n' int main() { int a,b,c,d,e,f; int g,h,i,j,k,l; cin >> a >> b >> c >> d…</n;i++)></bits/stdc++.h>