結果

問題 No.72 そろばん Med
ユーザー yuki2006yuki2006
提出日時 2014-11-18 21:30:16
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 431 bytes
コンパイル時間 5,048 ms
コンパイル使用メモリ 71,388 KB
実行使用メモリ 57,740 KB
最終ジャッジ日時 2023-08-30 20:53:20
合計ジャッジ時間 10,503 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
55,920 KB
testcase_02 AC 120 ms
56,120 KB
testcase_03 WA -
testcase_04 AC 122 ms
55,812 KB
testcase_05 WA -
testcase_06 AC 121 ms
55,748 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 121 ms
55,668 KB
testcase_10 AC 120 ms
55,524 KB
testcase_11 AC 120 ms
55,772 KB
testcase_12 AC 122 ms
55,920 KB
testcase_13 WA -
testcase_14 AC 120 ms
55,692 KB
testcase_15 WA -
testcase_16 AC 119 ms
57,432 KB
testcase_17 AC 119 ms
55,848 KB
testcase_18 AC 121 ms
55,304 KB
testcase_19 AC 120 ms
53,852 KB
testcase_20 AC 119 ms
55,388 KB
testcase_21 AC 118 ms
55,848 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 122 ms
55,672 KB
testcase_25 WA -
testcase_26 AC 122 ms
55,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki072 {
    public static void main(String[] args) {
        Yuki072 hoge = new Yuki072();
    }

    Yuki072() {
        Scanner scanner = new Scanner(System.in);
        long N = scanner.nextLong();
        long mod = 1000007L;

        long i = N / 2;
        long tmp = (((i + 1) % mod) * ((N - i) % mod));
        System.out.println((i % mod) + tmp % mod);
    }

}
0