結果

問題 No.80 四角形を描こう
ユーザー kano_townkano_town
提出日時 2014-11-27 23:31:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 3,777 ms
コンパイル使用メモリ 77,996 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2024-10-08 03:51:30
合計ジャッジ時間 6,455 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yukicoder80 {
	public static void main(String[] args) {
		int D = new Scanner(System.in).nextInt(), max = 0;
		for (int i = 1; i < D/2; i ++) 	max = Math.max(max, i * (int)Math.floor((D - i * 2)/2));
		System.out.println(max);
	}
}
0