結果

問題 No.57 ミリオンダイス
ユーザー FVRChanFVRChan
提出日時 2017-10-02 22:00:09
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 2,153 ms
コンパイル使用メモリ 74,080 KB
実行使用メモリ 55,996 KB
最終ジャッジ日時 2023-08-10 00:13:35
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,468 KB
testcase_01 AC 116 ms
55,772 KB
testcase_02 AC 116 ms
55,676 KB
testcase_03 AC 116 ms
55,672 KB
testcase_04 AC 120 ms
55,600 KB
testcase_05 AC 124 ms
55,672 KB
testcase_06 AC 123 ms
55,296 KB
testcase_07 AC 120 ms
55,780 KB
testcase_08 AC 123 ms
55,996 KB
testcase_09 AC 121 ms
55,680 KB
testcase_10 AC 120 ms
55,664 KB
testcase_11 AC 120 ms
55,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int n=sc.nextInt();
		if(n%2==0)
			System.out.println((int)(3.5*n));
		else
			System.out.println(3.5*n);
	}
}
0