結果
問題 |
No.3184 Make Same
|
ユーザー |
|
提出日時 | 2025-06-20 21:27:02 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 619 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 82,284 KB |
実行使用メモリ | 143,900 KB |
最終ジャッジ日時 | 2025-06-20 21:27:17 |
合計ジャッジ時間 | 13,833 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 WA * 3 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #sys.set_int_max_str_digits(0) #input = sys.stdin.readline n = int(input()) a = list(map(int,input().split())) #a = [] #s = input() #n,m = map(int,input().split()) #for i in range(n): # a.append(list(map(int,input().split()))) ans = [] t = 0 for i in reversed(range(30)): x = (1<<i) t += x y = bisect.bisect_left(a,t) ans.append((1,y,x)) for j in range(y): a[j] += x a.sort() #print(a) assert len(set(a)) == 1 print(len(ans)) for i in ans: print(*i)