結果
| 問題 | No.2828 Remainder Game | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-11-07 12:04:59 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 146 ms / 2,000 ms | 
| コード長 | 250 bytes | 
| コンパイル時間 | 259 ms | 
| コンパイル使用メモリ | 82,176 KB | 
| 実行使用メモリ | 81,640 KB | 
| 平均クエリ数 | 28.00 | 
| 最終ジャッジ日時 | 2024-11-07 12:05:11 | 
| 合計ジャッジ時間 | 4,849 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
N=int(input())
ans=0
for i in range(15):
    M=2**(i+1)
    if M>10000:
    	break
    R=[]
    for j in range(M):
	    if j&(2**i)!=0:
		    R.append(j)
    print(M,len(R))
    print(*R)
    cnt=int(input())
    ans+=(2**i)*cnt
print(0,1)
print(ans)
            
            
            
        