結果
問題 | No.1286 Stone Skipping |
ユーザー |
![]() |
提出日時 | 2020-11-13 22:28:00 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 582 ms |
コンパイル使用メモリ | 87,148 KB |
実行使用メモリ | 80,016 KB |
最終ジャッジ日時 | 2023-09-30 03:22:43 |
合計ジャッジ時間 | 6,595 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 60 ms
75,740 KB |
testcase_01 | AC | 62 ms
71,332 KB |
testcase_02 | AC | 64 ms
75,636 KB |
testcase_03 | AC | 63 ms
71,432 KB |
testcase_04 | AC | 63 ms
71,448 KB |
testcase_05 | AC | 62 ms
71,184 KB |
testcase_06 | AC | 61 ms
71,400 KB |
testcase_07 | AC | 62 ms
71,364 KB |
testcase_08 | AC | 62 ms
71,484 KB |
testcase_09 | AC | 69 ms
71,332 KB |
testcase_10 | AC | 63 ms
71,192 KB |
testcase_11 | AC | 60 ms
71,192 KB |
testcase_12 | AC | 64 ms
71,116 KB |
testcase_13 | AC | 66 ms
75,528 KB |
testcase_14 | AC | 67 ms
75,700 KB |
testcase_15 | AC | 66 ms
75,612 KB |
testcase_16 | AC | 69 ms
75,660 KB |
testcase_17 | AC | 66 ms
75,548 KB |
testcase_18 | AC | 64 ms
71,260 KB |
testcase_19 | AC | 63 ms
71,188 KB |
testcase_20 | AC | 70 ms
75,676 KB |
testcase_21 | AC | 73 ms
75,616 KB |
testcase_22 | AC | 65 ms
75,616 KB |
testcase_23 | AC | 808 ms
75,864 KB |
testcase_24 | TLE | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
ソースコード
D=int(input()) L=D//2 R=D while L!=R: now=(L+R)//2 count=0 while count<D and now>0: count+=now now//=2 if count>=D: R=(L+R)//2 else: L=(L+R)//2+1 while L<D: count=0 now=L while count<D: count+=now now//=2 if count==D: break L+=1 print(L)