結果

問題 No.111 あばばばば
ユーザー fal_rndfal_rnd
提出日時 2017-04-03 20:12:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 3,929 ms
コンパイル使用メモリ 71,604 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-09-22 11:38:16
合計ジャッジ時間 3,930 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,744 KB
testcase_01 AC 124 ms
56,332 KB
testcase_02 AC 122 ms
56,436 KB
testcase_03 AC 123 ms
55,988 KB
testcase_04 AC 124 ms
55,836 KB
testcase_05 AC 126 ms
55,428 KB
testcase_06 AC 125 ms
55,456 KB
testcase_07 AC 123 ms
54,008 KB
testcase_08 AC 125 ms
55,420 KB
testcase_09 AC 122 ms
55,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static final Scanner s=new Scanner(System.in);

	public static void main(String args[]){
		long i=(s.nextLong()-1)/2;
		System.out.println(i*i);
	}

}
0