結果

問題 No.57 ミリオンダイス
ユーザー abcabc
提出日時 2016-10-27 01:09:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 2,971 ms
コンパイル使用メモリ 73,732 KB
実行使用メモリ 41,420 KB
最終ジャッジ日時 2024-05-03 06:15:19
合計ジャッジ時間 4,617 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,164 KB
testcase_01 AC 131 ms
41,148 KB
testcase_02 AC 128 ms
41,384 KB
testcase_03 AC 129 ms
41,340 KB
testcase_04 AC 130 ms
41,256 KB
testcase_05 AC 129 ms
41,128 KB
testcase_06 AC 134 ms
41,080 KB
testcase_07 AC 136 ms
41,100 KB
testcase_08 AC 125 ms
39,808 KB
testcase_09 AC 138 ms
41,280 KB
testcase_10 AC 135 ms
41,192 KB
testcase_11 AC 135 ms
41,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        double numDice = sc.nextInt();

        double expectedValue = 7 * numDice / 2;

        System.out.println(expectedValue);

    }

}
0