結果

問題 No.2110 012 Matching
ユーザー タコイモ
提出日時 2022-10-28 21:43:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,192 KB
実行使用メモリ 77,160 KB
最終ジャッジ日時 2024-07-06 00:49:31
合計ジャッジ時間 3,374 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
  A,B,C = map(int,input().split())
  ans = 0
  ans += + B - (B%2)
  B = B%2

  if C <= A:
    A -= C
    ans += 2*C
    C = 0
  else:
    print(ans+2*A)
    continue
  if B <= A:
    print(ans+B)
    continue
  else:
    print(ans+A)
    continue
    
  

    
    

    
  
            
0