結果
| 問題 | No.3041 非対称じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-01 14:04:47 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WJ
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 265 bytes |
| 記録 | |
| 最終ジャッジ日時 | 2026-07-06 14:14:59 |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
ソースコード
N,F = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))
now = 1
for i in range(N):
now = (now << A[i]) | (now << B[i]) | (now << C[i])
#print(now)
print(now.bit_count())