結果
問題 | No.1594 Three Classes |
ユーザー |
![]() |
提出日時 | 2023-06-01 01:19:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 75,768 KB |
最終ジャッジ日時 | 2024-12-28 14:22:13 |
合計ジャッジ時間 | 3,336 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
from itertools import productn=int(input())a = list(map(int,input().split()))cnt = 0for p in product([0,1,2],repeat = n):t = [0]*3for i in range(n):t[p[i]] += a[i]if t[0] == t[1] == t[2]:print('Yes')exit()print('No')