結果

問題 No.111 あばばばば
ユーザー Grenache
提出日時 2015-07-27 17:43:55
言語 Java
(openjdk 23)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 298 bytes
コンパイル時間 3,321 ms
コンパイル使用メモリ 74,868 KB
実行使用メモリ 54,328 KB
最終ジャッジ日時 2024-07-16 04:11:08
合計ジャッジ時間 5,388 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder111 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int l = sc.nextInt();
        long ret = (l - 1) / 2;
        ret *= ret;

        System.out.println(ret);

        sc.close();
    }
}
0