結果

問題 No.111 あばばばば
ユーザー ffmm00ffmm00
提出日時 2015-06-18 12:39:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 4,414 ms
コンパイル使用メモリ 71,160 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-21 09:25:44
合計ジャッジ時間 5,130 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
56,212 KB
testcase_01 AC 116 ms
56,012 KB
testcase_02 AC 112 ms
56,124 KB
testcase_03 AC 123 ms
56,092 KB
testcase_04 AC 115 ms
55,864 KB
testcase_05 AC 116 ms
55,808 KB
testcase_06 AC 113 ms
55,752 KB
testcase_07 AC 117 ms
56,100 KB
testcase_08 AC 109 ms
54,040 KB
testcase_09 AC 114 ms
55,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N111 {

	public static void main(String[] args) {

		Scanner sca = new Scanner(System.in);

		long L = sca.nextLong();

		L = (L - 1) / 2;

		System.out.println(L * L);

	}

}
0