結果

問題 No.1139 Slime Race
ユーザー keymoonkeymoon
提出日時 2021-01-15 00:01:28
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 675 bytes
コンパイル時間 808 ms
コンパイル使用メモリ 110,976 KB
実行使用メモリ 39,168 KB
最終ジャッジ日時 2024-05-03 16:48:01
合計ジャッジ時間 4,270 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
19,072 KB
testcase_01 WA -
testcase_02 AC 26 ms
19,072 KB
testcase_03 AC 26 ms
18,944 KB
testcase_04 AC 26 ms
18,944 KB
testcase_05 AC 26 ms
18,560 KB
testcase_06 AC 33 ms
19,968 KB
testcase_07 AC 28 ms
19,072 KB
testcase_08 WA -
testcase_09 AC 28 ms
18,944 KB
testcase_10 AC 102 ms
36,096 KB
testcase_11 AC 98 ms
35,328 KB
testcase_12 AC 111 ms
38,144 KB
testcase_13 WA -
testcase_14 AC 102 ms
36,096 KB
testcase_15 AC 106 ms
36,992 KB
testcase_16 AC 115 ms
37,888 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 70 ms
27,392 KB
testcase_20 AC 69 ms
27,008 KB
testcase_21 AC 88 ms
34,432 KB
testcase_22 AC 99 ms
36,224 KB
testcase_23 AC 119 ms
39,168 KB
testcase_24 AC 27 ms
18,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P
{
    public static void Main()
    {
        var nd = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var n = nd[0];
        var d = nd[1];
        var x = Console.ReadLine().Split().Select(long.Parse).ToArray();
        var v = Console.ReadLine().Split().Select(long.Parse).ToArray();
        var sum = v.Sum();
        Console.WriteLine((d + sum) / sum);
    }
}
0