結果

問題 No.57 ミリオンダイス
ユーザー FVRChanFVRChan
提出日時 2017-10-02 22:00:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 2,006 ms
コンパイル使用メモリ 74,556 KB
実行使用メモリ 54,508 KB
最終ジャッジ日時 2024-04-27 18:17:33
合計ジャッジ時間 3,916 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
54,324 KB
testcase_01 AC 100 ms
53,060 KB
testcase_02 AC 112 ms
54,040 KB
testcase_03 AC 108 ms
54,180 KB
testcase_04 AC 99 ms
52,908 KB
testcase_05 AC 100 ms
53,012 KB
testcase_06 AC 110 ms
54,508 KB
testcase_07 AC 111 ms
54,228 KB
testcase_08 AC 115 ms
54,388 KB
testcase_09 AC 102 ms
53,048 KB
testcase_10 AC 101 ms
53,092 KB
testcase_11 AC 109 ms
54,132 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