結果
問題 | No.2828 Remainder Game |
ユーザー | ねしん |
提出日時 | 2024-05-21 21:31:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 126 ms / 2,000 ms |
コード長 | 250 bytes |
コンパイル時間 | 290 ms |
コンパイル使用メモリ | 82,456 KB |
実行使用メモリ | 83,256 KB |
平均クエリ数 | 28.00 |
最終ジャッジ日時 | 2024-06-20 18:43:24 |
合計ジャッジ時間 | 4,069 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 117 ms
80,888 KB |
testcase_01 | AC | 114 ms
81,292 KB |
testcase_02 | AC | 111 ms
81,676 KB |
testcase_03 | AC | 110 ms
81,432 KB |
testcase_04 | AC | 112 ms
81,764 KB |
testcase_05 | AC | 112 ms
82,532 KB |
testcase_06 | AC | 114 ms
81,296 KB |
testcase_07 | AC | 114 ms
81,348 KB |
testcase_08 | AC | 114 ms
81,444 KB |
testcase_09 | AC | 110 ms
81,844 KB |
testcase_10 | AC | 111 ms
82,280 KB |
testcase_11 | AC | 111 ms
81,424 KB |
testcase_12 | AC | 126 ms
81,104 KB |
testcase_13 | AC | 126 ms
83,164 KB |
testcase_14 | AC | 120 ms
82,640 KB |
testcase_15 | AC | 125 ms
83,012 KB |
testcase_16 | AC | 110 ms
81,900 KB |
testcase_17 | AC | 120 ms
83,256 KB |
testcase_18 | AC | 122 ms
81,432 KB |
testcase_19 | AC | 123 ms
82,308 KB |
ソースコード
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)