結果

問題 No.80 四角形を描こう
ユーザー samplelpmassamplelpmas
提出日時 2017-04-24 18:05:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 234 bytes
コンパイル時間 2,527 ms
コンパイル使用メモリ 71,264 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-10-11 13:16:51
合計ジャッジ時間 4,333 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,304 KB
testcase_01 AC 120 ms
55,512 KB
testcase_02 AC 120 ms
55,980 KB
testcase_03 AC 122 ms
55,956 KB
testcase_04 AC 122 ms
55,968 KB
testcase_05 AC 122 ms
56,268 KB
testcase_06 AC 121 ms
55,596 KB
testcase_07 AC 121 ms
56,032 KB
testcase_08 AC 119 ms
56,208 KB
testcase_09 AC 120 ms
55,912 KB
testcase_10 AC 121 ms
56,144 KB
testcase_11 AC 122 ms
55,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int D = sc.nextInt();

        System.out.println((D / 4) * ((D + 2) / 4));

    }

}
0