結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-03-02 01:03:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 311 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 268,708 KB |
| 最終ジャッジ日時 | 2025-03-02 01:04:04 |
| 合計ジャッジ時間 | 6,814 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 TLE * 1 -- * 9 |
ソースコード
import sys
input = sys.stdin.readline
N,F=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
C=list(map(int,input().split()))
S={A[0],B[0],C[0]}
print(len(S))
for i in range(1,N):
S2=set()
for s in S:
S2.add(s+A[i])
S2.add(s+B[i])
S2.add(s+C[i])
S=S2
print(len(S))
titia