結果

問題 No.285 消費税2
ユーザー nokonokonokonoko
提出日時 2015-10-09 22:21:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 1,564 bytes
コンパイル時間 3,924 ms
コンパイル使用メモリ 107,708 KB
実行使用メモリ 26,876 KB
最終ジャッジ日時 2023-09-27 08:18:52
合計ジャッジ時間 5,789 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
22,668 KB
testcase_01 AC 65 ms
22,856 KB
testcase_02 AC 62 ms
24,776 KB
testcase_03 AC 64 ms
22,736 KB
testcase_04 AC 66 ms
26,876 KB
testcase_05 AC 65 ms
22,708 KB
testcase_06 AC 63 ms
22,740 KB
testcase_07 AC 64 ms
24,748 KB
testcase_08 AC 63 ms
22,700 KB
testcase_09 AC 63 ms
24,780 KB
testcase_10 AC 64 ms
24,736 KB
testcase_11 AC 63 ms
24,752 KB
testcase_12 AC 63 ms
20,684 KB
testcase_13 AC 63 ms
20,548 KB
testcase_14 AC 66 ms
22,596 KB
testcase_15 AC 63 ms
24,756 KB
testcase_16 AC 63 ms
24,712 KB
testcase_17 AC 64 ms
24,676 KB
testcase_18 AC 64 ms
22,808 KB
testcase_19 AC 63 ms
24,704 KB
testcase_20 AC 62 ms
22,648 KB
testcase_21 AC 66 ms
22,796 KB
testcase_22 AC 62 ms
22,736 KB
testcase_23 AC 63 ms
22,668 KB
testcase_24 AC 65 ms
22,680 KB
testcase_25 AC 63 ms
22,692 KB
testcase_26 AC 64 ms
22,716 KB
testcase_27 AC 64 ms
24,716 KB
testcase_28 AC 64 ms
24,824 KB
testcase_29 AC 64 ms
24,704 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        long n = io.r<long>();

        io.w((double)n * 1.08);
        io.wflush();
    }
}

namespace LIB
{
    public class io
    {
        private const int WMAX = 1000;
        private static StringBuilder S = new StringBuilder();
        public static T r<T>() { return util.parse<T>(r()); }
        public static T[] r<T>(char s = ' ') { return r().Split(s).Select(util.parse<T>).ToArray(); }
        public static T[] r<T>(int l) { T[] r = new T[l]; for (int i = 0; i < l; i++) { r[i] = r<T>(); } return r; }
        public static T[][] r<T>(int l, char s = ' ') { T[][] r = new T[l][]; for (int i = 0; i < l; i++) { r[i] = r<T>(s); } return r; }
        private static string r() { return Console.ReadLine(); }
        public static void w(object v, bool lf = true) { S.Append(util.parse<string>(v)); if (lf == true) { S.Append('\n'); } if (S.Length >= WMAX) { wflush(); } }
        public static void wflush() { Console.Write(S.ToString()); S.Length = 0; }
    }
    public class util
    {
        public static T parse<T>(object value) { return (T)(Convert.ChangeType(value, typeof(T))); }
    }
    public class memo<Key, Result>
    {
        private Dictionary<Key, Result> R;
        public memo() { R = new Dictionary<Key, Result>(); }
        public Result exec(Key k, Func<Key, Result> f) { Result r; if (R.ContainsKey(k)) { r = R[k]; } else { r = f(k); R.Add(k, r); } return r; }
    }
}
0