結果

問題 No.111 あばばばば
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-07 09:26:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 1,968 ms
コンパイル使用メモリ 72,160 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-09-17 06:28:16
合計ジャッジ時間 3,957 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,948 KB
testcase_01 AC 124 ms
55,752 KB
testcase_02 AC 124 ms
55,700 KB
testcase_03 AC 124 ms
56,136 KB
testcase_04 AC 126 ms
56,144 KB
testcase_05 AC 123 ms
55,804 KB
testcase_06 AC 126 ms
55,900 KB
testcase_07 AC 123 ms
56,196 KB
testcase_08 AC 124 ms
55,720 KB
testcase_09 AC 124 ms
56,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
       int l = koko.nextInt();
       long n = (l-1)/2;
       long kai = n*n;
       System.out.println(kai);
    }
}
0