結果

問題 No.560 ふしぎなナップサック
ユーザー りあんりあん
提出日時 2016-05-23 20:59:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 970 bytes
コンパイル時間 3,207 ms
コンパイル使用メモリ 105,268 KB
実行使用メモリ 25,664 KB
最終ジャッジ日時 2023-07-29 02:50:09
合計ジャッジ時間 5,382 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
23,648 KB
testcase_01 AC 68 ms
23,612 KB
testcase_02 AC 68 ms
23,724 KB
testcase_03 AC 64 ms
23,816 KB
testcase_04 AC 66 ms
25,664 KB
testcase_05 AC 68 ms
23,560 KB
testcase_06 AC 67 ms
23,808 KB
testcase_07 AC 67 ms
23,736 KB
testcase_08 AC 69 ms
23,628 KB
testcase_09 AC 66 ms
21,664 KB
testcase_10 AC 67 ms
23,604 KB
testcase_11 AC 66 ms
23,932 KB
testcase_12 AC 67 ms
25,616 KB
testcase_13 AC 67 ms
23,656 KB
testcase_14 AC 66 ms
25,588 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.Generic;
using System.Linq;
using System.IO;
using System.Text;

class Program
{
    static void Main()
    {
        var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
        var sc = new Scan();
        int m, n;
        sc.Multi(out m, out n);
        sw.WriteLine(m + n / 3.0);
        sw.Flush();
    }
}
class Scan
{
    public int Int { get { return int.Parse(Str); } }
    public long Long { get { return long.Parse(Str); } }
    public string Str { get { return Console.ReadLine().Trim(); } }
    public int[] IntArr { get { return StrArr.Select(int.Parse).ToArray(); } }
    public long[] LongArr { get { return StrArr.Select(long.Parse).ToArray(); } }
    public double[] DoubleArr { get { return StrArr.Select(double.Parse).ToArray(); } }
    public string[] StrArr { get { return Str.Split(); } }
    public void Multi(out int a, out int b) { var arr = IntArr; a = arr[0]; b = arr[1]; }
}
0