結果

問題 No.111 あばばばば
ユーザー dazydazy
提出日時 2016-09-12 04:22:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 3,382 ms
コンパイル使用メモリ 77,580 KB
実行使用メモリ 41,412 KB
最終ジャッジ日時 2024-04-28 12:22:27
合計ジャッジ時間 5,349 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,328 KB
testcase_01 AC 120 ms
40,208 KB
testcase_02 AC 114 ms
40,004 KB
testcase_03 AC 120 ms
40,492 KB
testcase_04 AC 132 ms
41,104 KB
testcase_05 AC 129 ms
41,104 KB
testcase_06 AC 128 ms
41,412 KB
testcase_07 AC 130 ms
41,148 KB
testcase_08 AC 132 ms
41,100 KB
testcase_09 AC 131 ms
41,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        long L = scan.nextLong();
        long n = (L-1)/2;
        System.out.println(n *(L - n - 1));
    }
}
0