結果

問題 No.80 四角形を描こう
ユーザー tentententen
提出日時 2020-11-17 13:44:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 288 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 56,660 KB
最終ジャッジ日時 2023-09-30 14:11:47
合計ジャッジ時間 4,391 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,000 KB
testcase_01 AC 119 ms
55,844 KB
testcase_02 AC 119 ms
55,840 KB
testcase_03 AC 118 ms
54,672 KB
testcase_04 AC 119 ms
56,064 KB
testcase_05 AC 119 ms
55,424 KB
testcase_06 AC 122 ms
55,616 KB
testcase_07 AC 123 ms
55,660 KB
testcase_08 AC 121 ms
55,984 KB
testcase_09 AC 119 ms
55,700 KB
testcase_10 AC 119 ms
56,660 KB
testcase_11 AC 119 ms
55,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    static final int MOD = 1000007;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int d = sc.nextInt();
        int half = d / 2;
        System.out.println(half / 2 * (half - half / 2));
    }
}
0