結果

問題 No.80 四角形を描こう
ユーザー GrenacheGrenache
提出日時 2015-11-06 20:21:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 3,912 ms
コンパイル使用メモリ 74,140 KB
実行使用メモリ 41,428 KB
最終ジャッジ日時 2024-04-16 22:51:51
合計ジャッジ時間 7,091 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,372 KB
testcase_01 AC 133 ms
40,976 KB
testcase_02 AC 119 ms
39,968 KB
testcase_03 AC 136 ms
41,180 KB
testcase_04 AC 131 ms
41,184 KB
testcase_05 AC 130 ms
41,176 KB
testcase_06 AC 131 ms
41,060 KB
testcase_07 AC 133 ms
41,172 KB
testcase_08 AC 133 ms
41,376 KB
testcase_09 AC 134 ms
41,276 KB
testcase_10 AC 133 ms
41,428 KB
testcase_11 AC 127 ms
40,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder80 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int d = sc.nextInt();

        int xy = d / 2;
        int x = xy / 2;
        int y = xy - x;

        System.out.println(x * y);

        sc.close();
    }
}
0