結果

問題 No.57 ミリオンダイス
ユーザー mustonmuston
提出日時 2016-05-20 14:09:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 1,864 ms
コンパイル使用メモリ 72,092 KB
実行使用メモリ 56,452 KB
最終ジャッジ日時 2023-08-09 00:54:54
合計ジャッジ時間 4,103 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,100 KB
testcase_01 AC 118 ms
56,452 KB
testcase_02 AC 117 ms
56,044 KB
testcase_03 AC 114 ms
55,996 KB
testcase_04 AC 118 ms
55,524 KB
testcase_05 AC 116 ms
56,208 KB
testcase_06 AC 120 ms
56,044 KB
testcase_07 AC 117 ms
55,828 KB
testcase_08 AC 119 ms
53,992 KB
testcase_09 AC 122 ms
55,908 KB
testcase_10 AC 118 ms
56,108 KB
testcase_11 AC 119 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
/*yukicoder No57 ミリオンダイス*/
class No57{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    //サイコロを振る回数を入力
    double n = scan.nextInt();
    //期待値を計算
    double ans = 7*n/2;
    System.out.println(ans);
  }
}
0