結果
問題 |
No.3041 非対称じゃんけん
|
ユーザー |
![]() |
提出日時 | 2025-03-02 01:02:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 351 bytes |
コンパイル時間 | 426 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 267,436 KB |
最終ジャッジ日時 | 2025-03-02 01:03:00 |
合計ジャッジ時間 | 8,550 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 WA * 16 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))