結果

問題 No.71 そろばん
ユーザー (,,゚Д゚)TERIA な の で す(,,゚Д゚)TERIA な の で す
提出日時 2014-11-26 15:53:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 270 bytes
コンパイル時間 3,407 ms
コンパイル使用メモリ 71,348 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-01 22:12:13
合計ジャッジ時間 8,601 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,184 KB
testcase_01 AC 123 ms
55,692 KB
testcase_02 AC 123 ms
55,912 KB
testcase_03 AC 122 ms
55,820 KB
testcase_04 AC 122 ms
55,692 KB
testcase_05 AC 128 ms
55,928 KB
testcase_06 AC 125 ms
55,832 KB
testcase_07 AC 124 ms
55,920 KB
testcase_08 AC 121 ms
55,872 KB
testcase_09 AC 123 ms
55,928 KB
testcase_10 AC 125 ms
55,748 KB
testcase_11 AC 124 ms
56,072 KB
testcase_12 AC 123 ms
56,144 KB
testcase_13 AC 125 ms
55,792 KB
testcase_14 AC 125 ms
55,816 KB
testcase_15 AC 124 ms
55,980 KB
testcase_16 AC 124 ms
55,756 KB
testcase_17 AC 124 ms
55,968 KB
testcase_18 AC 126 ms
55,748 KB
testcase_19 AC 124 ms
55,764 KB
testcase_20 AC 125 ms
54,032 KB
testcase_21 AC 126 ms
56,080 KB
testcase_22 AC 125 ms
55,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Soroban{
	public static void main(String args[])
	{
		Scanner s=new Scanner(System.in);
		long maxTama = s.nextLong();
		long maxTamaPosi = maxTama/2;
		System.out.println(maxTamaPosi+(maxTama-maxTamaPosi)*(maxTamaPosi+1));
	}
}
0