問題一覧 > 通常問題

No.1550 null's Town Cleaning

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 344
作問者 : null / テスター : kichi2004_
お気に入りにしたユーザー ProblemId : 3386 / 自分の提出
問題文最終更新日: 2022-04-25 23:39:09
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 300 (順位表) の他の問題:

Problem Statement

null found an integer $n$ littered on the roadside. Since the town would get dirty if it were left like this, he decided to divide it by the beautiful prime $1000000007$.
Output the remainder when $n$ is divided by $1000000007$.

Input

$n$

Constraints

  • $0 \le n \le 2^{63}-1$
  • All inputs are integers.
  • Output

    Print a newline at the end.

    Sample

    Sample 1
    Input
    1
    Output
    1

    The remainder when $1$ is divided by $1000000007$ is $1$.

    Sample 2
    Input
    1000000007
    Output
    0

    The remainder when $1000000007$ is divided by $1000000007$ is $0$. It was beautiful from the start, so there was no problem.

    Sample 3
    Input
    9223372036854775807
    Output
    291172003

    The input may not fit in a $32$ bit integer type.

    提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。