結果

問題 No.1229 ラグビーの得点パターン
ユーザー keymoonkeymoon
提出日時 2020-12-31 19:35:47
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 705 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 109,704 KB
実行使用メモリ 27,704 KB
最終ジャッジ日時 2024-04-18 01:10:39
合計ジャッジ時間 2,323 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 22 ms
23,876 KB
testcase_02 AC 22 ms
25,540 KB
testcase_03 AC 22 ms
25,548 KB
testcase_04 AC 20 ms
23,856 KB
testcase_05 AC 21 ms
25,668 KB
testcase_06 AC 20 ms
23,896 KB
testcase_07 AC 20 ms
25,688 KB
testcase_08 AC 20 ms
25,812 KB
testcase_09 AC 19 ms
23,644 KB
testcase_10 AC 20 ms
23,728 KB
testcase_11 AC 21 ms
25,560 KB
testcase_12 AC 20 ms
25,668 KB
testcase_13 AC 19 ms
23,748 KB
testcase_14 AC 21 ms
27,704 KB
testcase_15 AC 22 ms
23,732 KB
testcase_16 AC 20 ms
23,256 KB
testcase_17 AC 21 ms
23,520 KB
testcase_18 AC 19 ms
23,900 KB
testcase_19 AC 23 ms
23,876 KB
testcase_20 AC 23 ms
25,676 KB
testcase_21 AC 19 ms
23,732 KB
testcase_22 AC 20 ms
23,648 KB
testcase_23 AC 21 ms
23,616 KB
testcase_24 AC 19 ms
23,548 KB
testcase_25 AC 20 ms
25,676 KB
testcase_26 AC 20 ms
23,900 KB
testcase_27 AC 20 ms
25,664 KB
testcase_28 AC 21 ms
23,644 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()
    {
        int n = int.Parse(Console.ReadLine());
        int res = 0;
        for (int i = 0; i < n; i++)
        {
            for (int j = 0; j <= i; j++)
            {
                for (int k = 0; k < n; k++)
                {
                    if (i * 5 + j * 2 + k * 3 == n) res++;
                }
            }
        }
        Console.WriteLine(res);
    }
}
0