結果

問題 No.111 あばばばば
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-14 01:15:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 2,311 ms
コンパイル使用メモリ 71,496 KB
実行使用メモリ 56,204 KB
最終ジャッジ日時 2023-08-17 04:31:42
合計ジャッジ時間 4,377 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,644 KB
testcase_01 AC 127 ms
56,204 KB
testcase_02 AC 127 ms
53,608 KB
testcase_03 AC 127 ms
56,096 KB
testcase_04 AC 127 ms
55,808 KB
testcase_05 AC 124 ms
55,920 KB
testcase_06 AC 122 ms
55,392 KB
testcase_07 AC 124 ms
55,628 KB
testcase_08 AC 123 ms
55,708 KB
testcase_09 AC 128 ms
55,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int L = sc.nextInt();
        int a = L/2;
        long b = (long)a*a;
        System.out.println(b);
    }
}
0