結果

問題 No.111 あばばばば
ユーザー shinwisteriashinwisteria
提出日時 2019-01-23 20:09:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 4,298 ms
コンパイル使用メモリ 72,396 KB
実行使用メモリ 56,088 KB
最終ジャッジ日時 2023-10-14 09:30:12
合計ジャッジ時間 5,496 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,988 KB
testcase_01 AC 120 ms
55,716 KB
testcase_02 AC 119 ms
55,716 KB
testcase_03 WA -
testcase_04 AC 124 ms
55,452 KB
testcase_05 AC 121 ms
55,400 KB
testcase_06 AC 118 ms
55,948 KB
testcase_07 AC 122 ms
55,696 KB
testcase_08 WA -
testcase_09 AC 121 ms
55,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No111 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long l = s.nextLong();
		s.close();

		System.out.println((long)Math.pow(((double)l-1)/2, 2));

	}

}
0