結果

問題 No.57 ミリオンダイス
ユーザー 37zigen37zigen
提出日時 2016-03-23 13:24:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 2,032 ms
コンパイル使用メモリ 74,324 KB
実行使用メモリ 41,848 KB
最終ジャッジ日時 2024-04-26 16:49:22
合計ジャッジ時間 4,519 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
41,552 KB
testcase_01 AC 139 ms
41,524 KB
testcase_02 AC 137 ms
41,744 KB
testcase_03 AC 140 ms
41,424 KB
testcase_04 AC 128 ms
40,904 KB
testcase_05 AC 137 ms
41,204 KB
testcase_06 AC 141 ms
41,616 KB
testcase_07 AC 127 ms
40,636 KB
testcase_08 AC 138 ms
41,740 KB
testcase_09 AC 141 ms
41,848 KB
testcase_10 AC 142 ms
41,808 KB
testcase_11 AC 141 ms
41,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder057;

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		double n=sc.nextDouble();
		double ans=n*(1+2+3+4+5+6)/6;
		System.out.println(ans);
	}
}
0