結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2025-03-02 14:35:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 245 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 82,672 KB |
| 実行使用メモリ | 99,760 KB |
| 最終ジャッジ日時 | 2025-03-02 14:35:27 |
| 合計ジャッジ時間 | 11,231 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 TLE * 2 -- * 3 |
ソースコード
n, f = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = list(map(int, input().split()))
dp = 1
for i in range(n):
dp = (dp << a[i]) | (dp << b[i]) | (dp << c[i])
print(dp.bit_count())
eve__fuyuki