結果
問題 |
No.379 五円硬貨
|
ユーザー |
|
提出日時 | 2017-08-22 03:14:44 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 713 ms |
コンパイル使用メモリ | 109,452 KB |
実行使用メモリ | 27,924 KB |
最終ジャッジ日時 | 2024-10-15 00:58:50 |
合計ジャッジ時間 | 2,139 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 10 WA * 6 |
コンパイルメッセージ
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() { int[] ngv = Console.ReadLine().Split().Select(int.Parse).ToArray(); int coin = ngv[0] / 5; var ans = coin * ngv[1] / (double)ngv[2]; Console.WriteLine(ans); } }