結果

問題 No.280 歯車の問題(1)
ユーザー nokonokonokonoko
提出日時 2015-10-06 23:04:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 1,628 bytes
コンパイル時間 2,701 ms
コンパイル使用メモリ 108,008 KB
実行使用メモリ 23,920 KB
最終ジャッジ日時 2023-09-27 07:37:37
合計ジャッジ時間 8,182 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
21,732 KB
testcase_01 AC 58 ms
21,804 KB
testcase_02 AC 60 ms
23,892 KB
testcase_03 AC 61 ms
21,740 KB
testcase_04 AC 60 ms
21,868 KB
testcase_05 AC 62 ms
21,672 KB
testcase_06 AC 63 ms
23,840 KB
testcase_07 AC 60 ms
23,724 KB
testcase_08 AC 57 ms
21,912 KB
testcase_09 AC 58 ms
19,768 KB
testcase_10 AC 60 ms
21,828 KB
testcase_11 AC 60 ms
21,716 KB
testcase_12 AC 59 ms
21,688 KB
testcase_13 AC 59 ms
21,696 KB
testcase_14 AC 59 ms
21,808 KB
testcase_15 AC 60 ms
21,592 KB
testcase_16 AC 62 ms
23,744 KB
testcase_17 AC 59 ms
21,868 KB
testcase_18 AC 58 ms
21,740 KB
testcase_19 AC 58 ms
21,688 KB
testcase_20 AC 59 ms
21,812 KB
testcase_21 AC 60 ms
21,860 KB
testcase_22 AC 61 ms
21,732 KB
testcase_23 AC 59 ms
21,656 KB
testcase_24 AC 60 ms
23,760 KB
testcase_25 AC 59 ms
23,848 KB
testcase_26 AC 58 ms
19,876 KB
testcase_27 AC 62 ms
23,896 KB
testcase_28 AC 61 ms
21,672 KB
testcase_29 AC 60 ms
21,616 KB
testcase_30 AC 61 ms
23,920 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)
    {
        int n = IO.R<int>();
        int[] z = IO.R<int>(' ');

        IO.W(z[z.Count() - 1].ToString() + "/" + z[0].ToString());
        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.Clear(); }
    }
    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