結果
| 問題 | No.57 ミリオンダイス |
| コンテスト | |
| ユーザー |
mrc1031
|
| 提出日時 | 2016-10-11 10:53:38 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| コード長 | 299 bytes |
| コンパイル時間 | 816 ms |
| コンパイル使用メモリ | 106,588 KB |
| 実行使用メモリ | 26,788 KB |
| 最終ジャッジ日時 | 2024-11-22 01:23:23 |
| 合計ジャッジ時間 | 1,791 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
// No.57 ミリオンダイス
int N = int.Parse(Console.ReadLine());
// 1個あたりの期待値*個数
Console.WriteLine((float)(1 + 2 + 3 + 4 + 5 + 6) / 6 * N);
}
}
mrc1031