⌨️

[AtCoder]ABC-398|A - Doors in the Center

2025/04/02に公開

設問ページ

提出結果

def getInt():
    return int(input())


def main():
    N = getInt()

    d, m = divmod(N, 2)
    if m == 0:
        print("-" * (d - 1) + "==" + "-" * (d - 1))
    else:
        print("-" * d + "=" + "-" * d)


if __name__ == "__main__":
    main()

Discussion