結果

問題 No.111 あばばばば
ユーザー atkrym
提出日時 2016-10-25 21:47:16
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 2,855 ms
コンパイル使用メモリ 74,644 KB
実行使用メモリ 41,636 KB
最終ジャッジ日時 2024-11-24 03:38:29
合計ジャッジ時間 3,968 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int l = (sc.nextInt()-1)/2;
        BigDecimal a = new BigDecimal(l);
        BigDecimal b = new BigDecimal(l);
        System.out.println(a.multiply(b));
    }
}
0