結果

問題 No.80 四角形を描こう
ユーザー kohaku_kohaku
提出日時 2016-11-19 00:39:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 2,491 ms
コンパイル使用メモリ 73,904 KB
実行使用メモリ 54,212 KB
最終ジャッジ日時 2024-11-26 10:19:54
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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