結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
SourCreamOnion
|
| 提出日時 | 2025-02-28 22:57:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 748 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 82,344 KB |
| 実行使用メモリ | 291,332 KB |
| 最終ジャッジ日時 | 2025-02-28 22:57:27 |
| 合計ジャッジ時間 | 7,900 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 16 TLE * 1 -- * 9 |
ソースコード
from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math
LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())
N,F=MI()
A=LMI()
B=LMI()
C=LMI()
S=set()
S.add(A[0])
S.add(B[0])
S.add(C[0])
print(len(S))
for i in range(1,N):
tmp=set()
for j in S:
tmp.add(j)
tmp.add(j+A[i])
tmp.add(j+B[i])
tmp.add(j+C[i])
S=tmp
print(len(S))
SourCreamOnion