Answers

最大値を求めるときはPnとPn+1の大小を比べます。これは定石なので覚えておいたほうがいいです。

Post A Comment
Were you able to resolve your confusion?