結果

問題 No.80 四角形を描こう
ユーザー holegumaholeguma
提出日時 2015-08-14 15:02:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 380 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 73,628 KB
実行使用メモリ 37,396 KB
最終ジャッジ日時 2024-04-16 22:29:31
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
37,036 KB
testcase_01 AC 52 ms
37,268 KB
testcase_02 AC 52 ms
37,080 KB
testcase_03 AC 51 ms
37,164 KB
testcase_04 AC 50 ms
37,132 KB
testcase_05 AC 51 ms
36,648 KB
testcase_06 AC 52 ms
37,144 KB
testcase_07 AC 52 ms
37,240 KB
testcase_08 AC 53 ms
37,396 KB
testcase_09 AC 56 ms
37,352 KB
testcase_10 AC 53 ms
37,240 KB
testcase_11 AC 52 ms
37,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

class Main{

static final PrintWriter out=new PrintWriter(System.out);

public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine())!=null&&!line.isEmpty()){
int d=Integer.parseInt(line);
d/=2;
int d1=d/2;
out.println((d-d1)*d1);
out.flush();
}
}
}
0