結果

問題 No.111 あばばばば
ユーザー spaciaspacia
提出日時 2016-01-03 21:08:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 365 bytes
コンパイル時間 2,465 ms
コンパイル使用メモリ 74,644 KB
実行使用メモリ 53,540 KB
最終ジャッジ日時 2023-10-19 14:49:15
合計ジャッジ時間 4,078 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
53,536 KB
testcase_01 AC 55 ms
53,536 KB
testcase_02 AC 54 ms
52,524 KB
testcase_03 AC 60 ms
53,528 KB
testcase_04 AC 53 ms
53,528 KB
testcase_05 AC 53 ms
53,532 KB
testcase_06 AC 55 ms
53,484 KB
testcase_07 AC 53 ms
53,532 KB
testcase_08 AC 55 ms
53,540 KB
testcase_09 AC 53 ms
53,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main {
	
	public static void out (Object o) {
		System.out.println(o);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		long n = Long.parseLong(br.readLine());
		n = (n - 1) / 2;
		out(n * n);
	}
}
0