結果

問題 No.111 あばばばば
ユーザー fukuseifukusei
提出日時 2017-05-17 15:25:21
言語 Java19
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 7,424 ms
コンパイル使用メモリ 74,500 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2023-10-17 23:53:26
合計ジャッジ時間 5,458 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,388 KB
testcase_01 AC 127 ms
57,340 KB
testcase_02 AC 123 ms
57,192 KB
testcase_03 AC 128 ms
57,388 KB
testcase_04 AC 126 ms
57,420 KB
testcase_05 AC 125 ms
57,600 KB
testcase_06 AC 125 ms
57,272 KB
testcase_07 AC 128 ms
57,204 KB
testcase_08 AC 126 ms
57,260 KB
testcase_09 AC 116 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*; 

public class test {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();

		
		long b = (a-1) / 2;
		long ans = b * b;
		
		System.out.println(ans);
	}
}
0