結果

問題 No.1003 サイコロの実装 (1)
ユーザー itt828itt828
提出日時 2020-03-10 16:54:18
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 3,698 bytes
コンパイル時間 975 ms
コンパイル使用メモリ 117,508 KB
実行使用メモリ 27,380 KB
最終ジャッジ日時 2024-04-27 18:42:19
合計ジャッジ時間 2,742 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
22,708 KB
testcase_01 AC 23 ms
26,868 KB
testcase_02 AC 24 ms
25,140 KB
testcase_03 AC 24 ms
25,104 KB
testcase_04 AC 24 ms
27,256 KB
testcase_05 AC 22 ms
25,236 KB
testcase_06 AC 23 ms
25,204 KB
testcase_07 AC 23 ms
25,076 KB
testcase_08 AC 23 ms
24,984 KB
testcase_09 AC 24 ms
24,596 KB
testcase_10 AC 23 ms
25,232 KB
testcase_11 AC 23 ms
24,956 KB
testcase_12 AC 25 ms
27,380 KB
testcase_13 AC 23 ms
25,108 KB
testcase_14 AC 24 ms
25,092 KB
testcase_15 AC 25 ms
25,236 KB
testcase_16 AC 26 ms
27,000 KB
testcase_17 AC 26 ms
27,256 KB
testcase_18 AC 26 ms
27,116 KB
testcase_19 AC 25 ms
27,256 KB
testcase_20 AC 24 ms
22,968 KB
testcase_21 AC 24 ms
25,200 KB
testcase_22 AC 25 ms
27,024 KB
testcase_23 AC 22 ms
23,088 KB
testcase_24 AC 23 ms
26,992 KB
testcase_25 AC 24 ms
24,728 KB
testcase_26 AC 23 ms
24,976 KB
testcase_27 AC 23 ms
25,236 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.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using System.Numerics;
using System.IO;
using static System.Math;
using static Math2;
using static io;


class Program
{
    static void Main(string[] args)
    {
        var wrong_answer = new wrong_answer();
        wrong_answer.Solve();
    }
}

public class wrong_answer
{
    const int INF = 1 << 29;
    const long INFL = 1L << 60;
    const int MOD = 1000000007;
    const int MOD2 = 998244353;



    public void Solve()
    {

        yn(int1 % 6 == 0);
    }


}



public static class Math2
{
    public static long pow(long i, long n, long MOD = 1000000007)
    {
        long res = 1;
        while (n > 0)
        {
            if ((n & 1) != 0) res = res * i % MOD;
            i = i * i % MOD;
            n >>= 1;
        }
        return res;
    }
    public static int pow(int i, int n, int MOD = 1000000007)
    {
        int res = 1;
        while (n > 0)
        {
            if ((n & 1) != 0) res = res * i % MOD;
            i = i * i % MOD;
            n >>= 1;
        }
        return res;
    }

    public static long gcd(long i, long y)
    {
        while (y != 0)
        {
            var r = i % y;
            i = y;
            y = r;
        }
        return i;
    }

    public static long lcm(long i, long y)
    {
        return i * y / gcd(i, y);
    }

    public static BigInteger bgcd(BigInteger i, BigInteger y)
    {
        while (y != 0)
        {
            var r = i % y;
            i = y;
            y = r;
        }
        return i;
    }

    public static BigInteger blcm(BigInteger i, BigInteger y)
    {
        return i * y / bgcd(i, y);
    }

    public static Dictionary<long, int> primefactorization(long N)
    {

        var ret = new Dictionary<long, int>();

        for (long i = 2; i * i <= N; ++i)
        {
            int cnt = 0;
            while (N % i == 0)
            {
                cnt++;
                N /= i;
            }
            if (cnt != 0) ret[i] = cnt;

        }
        if (N >= 2) ret[N] = 1;

        return ret;

    }

    public static List<long> divisorenumrate(long N)
    {
        var ret = new List<long>();

        for (long i = 1; i * i <= N; ++i)
        {

            if (N % i == 0)
            {
                ret.Add(i);
                ret.Add(N / i);
            }

        }

        return ret;

    }

    public static void swap<T>(ref T a, ref T b)
    {
        var i = a;
        a = b;
        b = i;
    }
    public static void chmin<T>(ref T a, T b) where T : IComparable
    {
        if (a.CompareTo(b) > 0) a = b;
    }
    public static void chmax<T>(ref T a, T b) where T : IComparable
    {
        if (a.CompareTo(b) < 0) a = b;
    }

}

public static class io
{
    //in
    public static string str => Console.ReadLine();

    public static string[] strm => str.Split(' ');

    public static long[] longm => strm.Select(long.Parse).ToArray();
    public static int[] intm => strm.Select(int.Parse).ToArray();
    public static char[] charm => str.ToArray();
    public static double[] doublem => strm.Select(double.Parse).ToArray();
    public static long long1 => longm[0];
    public static int int1 => intm[0];
    public static char char1 => charm[0];
    public static double double1 => doublem[0];
    public static void write(string a) => Console.WriteLine(a);
    public static void write(params object[] i) => write(string.Join(" ", i));
    public static void write<T>(IEnumerable<T> a) => write(string.Join(" ", a));
    public static void yn(bool i) { if (i) write("Yes"); else write("No"); }

}
0