結果

問題 No.80 四角形を描こう
ユーザー tsunabittsunabit
提出日時 2020-01-09 09:18:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 320 bytes
コンパイル時間 3,537 ms
コンパイル使用メモリ 75,220 KB
実行使用メモリ 54,264 KB
最終ジャッジ日時 2024-05-02 13:34:19
合計ジャッジ時間 6,205 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
54,072 KB
testcase_01 AC 134 ms
53,712 KB
testcase_02 AC 136 ms
53,976 KB
testcase_03 AC 135 ms
53,788 KB
testcase_04 AC 134 ms
53,992 KB
testcase_05 AC 135 ms
54,264 KB
testcase_06 AC 136 ms
54,060 KB
testcase_07 AC 137 ms
53,932 KB
testcase_08 AC 136 ms
54,016 KB
testcase_09 AC 135 ms
53,824 KB
testcase_10 AC 134 ms
54,092 KB
testcase_11 AC 136 ms
54,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

public class No80 {
//	private static Set<String> set = new HashSet<String>();
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int d = sc.nextInt();
		int t = d / 4;
		int y = d % 4 / 2;
		System.out.println(t * (y + t));
	}
}
0