結果
問題 |
No.3173 じゃんけんの勝ちの回数
|
ユーザー |
|
提出日時 | 2025-06-07 01:49:43 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 665 bytes |
コンパイル時間 | 3,240 ms |
コンパイル使用メモリ | 275,876 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-07 01:49:50 |
合計ジャッジ時間 | 5,340 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; // #include<atcoder/all> // using mint = atcoder::modint998244353; using ld = long double; #define fi first #define se second #define all(x) x.begin(), x.end() #define rep(i,n) for(int i=0;i<(int)(n);++i) #define chmax(a,b) a=max(a,b) #define chmin(a,b) a=min(a,b) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; while(T--){ vector<int> A(3),B(3); rep(i,3)cin>>A[i]; rep(i,3)cin>>B[i]; cout<<(max(0,A[1]-B[0]-B[1])+max(0,A[2]-B[1]-B[2])+max(0,A[0]-B[2]-B[0]))<<" "<<min(A[0],B[1])+min(A[1],B[2])+min(A[2],B[0])<<"\n"; } }