perogram

OEIS

隣接積の和の最小値をOEISに聞いてみる練習

Quiz https://yukicoder.me/problems/no/831 AC code https://yukicoder.me/submissions/442812 N=1~9までの答えを全探索で求め、その数列をOEISに与えて一般項を得る https://oeis.org/search?q=1%2C4%2C11%2C21%2C37%2C58%2C87%2C123%2C169&sort=&languag…

A. Alex and a Rhombus

Quiz https://codeforces.com/contest/1180/problem/A AC Code https://codeforces.com/contest/1180/submission/55876143 解法 数列は1, 5, 13, 25, ... OEISに聞く https://oeis.org/search?q=1%2C+5%2C+13%2C+25&language=english&go=Search 計算量 O(1)