結果
| 問題 |
No.445 得点
|
| ユーザー |
|
| 提出日時 | 2016-12-02 13:21:14 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 964 bytes |
| コンパイル時間 | 4,185 ms |
| コンパイル使用メモリ | 113,364 KB |
| 実行使用メモリ | 28,428 KB |
| 最終ジャッジ日時 | 2024-06-29 20:53:31 |
| 合計ジャッジ時間 | 5,466 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
コンパイルメッセージ
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;
namespace No445
{
class Program
{
static void Main(string[] args)
{
var inputs = Console.ReadLine().ToIntArray(' ');
Console.WriteLine(CalcurateScore(inputs[0], inputs[1]));
}
static string CalcurateScore(int n, int k)
{
return Math.Floor((50*n)+((50*n)/(0.8+0.2*k))).ToString();
}
}
static class StringExtention
{
public static string[] ToStringArray(this string value, char splitChar)
{
return value.Split(splitChar);
}
public static int[] ToIntArray(this string value, char splitChar)
{
return value.Split(splitChar).Select(x=>Convert.ToInt32(x)).ToArray();
}
public static long[] ToLongArray(this string value, char splitChar)
{
return value.Split(splitChar).Select(x => Convert.ToInt64(x)).ToArray();
}
}
}