結果

問題 No.80 四角形を描こう
ユーザー Grenache
提出日時 2015-11-06 20:21:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 3,627 ms
コンパイル使用メモリ 73,992 KB
実行使用メモリ 41,404 KB
最終ジャッジ日時 2024-10-08 05:00:13
合計ジャッジ時間 6,250 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

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