結果
| 問題 |
No.72 そろばん Med
|
| コンテスト | |
| ユーザー |
kou6839
|
| 提出日時 | 2014-12-21 16:23:17 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 480 bytes |
| コンパイル時間 | 2,639 ms |
| コンパイル使用メモリ | 77,032 KB |
| 実行使用メモリ | 41,544 KB |
| 最終ジャッジ日時 | 2024-06-12 03:11:18 |
| 合計ジャッジ時間 | 7,012 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 RE * 23 |
ソースコード
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
long si = n/2;
long ue = n-si;
BigInteger a = new BigInteger(si+"");
BigInteger aa = a.add(new BigInteger("1"));
BigInteger b = aa.multiply(new BigInteger(ue+""));
b = b.add(a);
System.out.println(b.mod(new BigInteger("1000007")));
}
}
kou6839