結果

問題 No.80 四角形を描こう
ユーザー scache
提出日時 2014-11-29 20:19:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 140 ms / 5,000 ms
コード長 339 bytes
コンパイル時間 6,667 ms
コンパイル使用メモリ 74,784 KB
実行使用メモリ 54,316 KB
最終ジャッジ日時 2024-10-08 03:54:56
合計ジャッジ時間 5,648 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #


import java.util.Scanner;

public class Main80 {
	public static void main(String[] args) {
		Main80 p = new Main80();
	}

	public Main80() {
		Scanner sc = new Scanner(System.in);
		int d = sc.nextInt();
		solve(d);
	}

	public void solve(int d) {
		int res = (d/4) * ((d-d/4*2)/2);
		System.out.println(res);
	}

}
0