結果
問題 | No.80 四角形を描こう |
ユーザー |
![]() |
提出日時 | 2015-08-14 15:02:10 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 2,096 ms |
コンパイル使用メモリ | 74,456 KB |
実行使用メモリ | 50,316 KB |
最終ジャッジ日時 | 2024-10-08 04:06:45 |
合計ジャッジ時間 | 3,500 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
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(); } } }