結果

問題 No.745 letinopia raoha
ユーザー CroweaCrowea
提出日時 2019-02-04 16:11:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,035 bytes
コンパイル時間 1,180 ms
コンパイル使用メモリ 71,920 KB
実行使用メモリ 24,076 KB
最終ジャッジ日時 2023-08-26 19:44:57
合計ジャッジ時間 2,610 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 53 ms
23,936 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 55 ms
21,812 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 53 ms
23,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

public class Program
{

    public static void Main(string[] args)
    {
        var result = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
        int perfect = result[0];
        int great = result[1];
        int good = result[2];
        int miss = result[3];

        var score = 0;
        if (miss >= 10) { Console.WriteLine("Impossible"); return; }

        for (int i = 1; i <= great; i++)
        {
            if (1 <= i && i <= 100) score += 50;
            else if (101 <= i && i <= 200) score += 100;
            else if (201 <= i && i <= 300) score += 200;
            else if (301 <= i && i <= 400) score += 400;
        }
        for (int i = 1; i <= perfect; i++)
        {
            if (1 <= i && i <= 100) score += 100;
            else if (101 <= i && i <= 200) score += 200;
            else if (201 <= i && i <= 300) score += 400;
            else if (301 <= i && i <= 400) score += 800;
        }
        Console.WriteLine("Possible\n{0}",score);
    }
}
0