Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最小位置を持つベクトルで最大値を見つけるにはどうすればよいですか?
たとえば、ベクトルがある場合v[5] = {2,2,1,1,1}、出力は になりますv[0]。
v[5] = {2,2,1,1,1}
v[0]
シングルパス実装の配列の末尾から配列内の最大値を見つけます