結果

問題 No.80 四角形を描こう
ユーザー kuramukuramu
提出日時 2016-02-11 10:11:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 480 bytes
コンパイル時間 2,142 ms
コンパイル使用メモリ 75,188 KB
実行使用メモリ 37,248 KB
最終ジャッジ日時 2024-04-16 22:53:02
合計ジャッジ時間 3,363 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
37,064 KB
testcase_01 AC 52 ms
37,164 KB
testcase_02 AC 52 ms
37,168 KB
testcase_03 AC 51 ms
37,248 KB
testcase_04 AC 51 ms
37,104 KB
testcase_05 AC 52 ms
37,088 KB
testcase_06 AC 53 ms
36,940 KB
testcase_07 AC 53 ms
36,996 KB
testcase_08 AC 52 ms
37,116 KB
testcase_09 AC 52 ms
37,016 KB
testcase_10 AC 50 ms
37,088 KB
testcase_11 AC 52 ms
36,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
	 public static void main(String[] args) {
	      BufferedReader stdReader =new BufferedReader(new InputStreamReader(System.in));
	      try {
	    	  int D = Integer.parseInt(stdReader.readLine());   	  
	    	  D /= 2;
	    	  int a = D/2;
	    	  int b = D-a;
	    	  System.out.println(a*b);
	      } catch (IOException e) {
			e.printStackTrace();
	      }
	}
}
0