結果
問題 |
No.1594 Three Classes
|
ユーザー |
|
提出日時 | 2021-07-10 15:03:19 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 81,844 KB |
実行使用メモリ | 67,244 KB |
最終ジャッジ日時 | 2024-07-02 02:28:37 |
合計ジャッジ時間 | 2,323 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 18 |
ソースコード
def bit_combination(n,base=2): rt=[] for tb in R(base**n):s=[tb//(base**bt)%base for bt in R(n)];rt+=[s] return rt n=int(input()) e=[int(i)for i in input().split()] f=1 for x in bit_combination(n,3): a=[0]*3 for i in range(n):a[x[i]]+=e[i] if len(set(a))==1:f=0 print('YNeos'[f::2])