結果

問題 No.586 ダブルブッキング
ユーザー yutakahanyutakahan
提出日時 2017-12-05 16:28:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 554 bytes
コンパイル時間 1,734 ms
コンパイル使用メモリ 103,420 KB
実行使用メモリ 24,576 KB
最終ジャッジ日時 2023-08-19 03:29:20
合計ジャッジ時間 2,788 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
24,500 KB
testcase_01 AC 51 ms
24,576 KB
testcase_02 AC 52 ms
22,484 KB
testcase_03 AC 51 ms
22,320 KB
testcase_04 AC 51 ms
24,440 KB
testcase_05 AC 50 ms
22,436 KB
testcase_06 AC 51 ms
22,400 KB
testcase_07 AC 50 ms
22,484 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;
public class Hello{
    public static void Main(){
        int price1 = int.Parse(Console.ReadLine());
        int price2 = int.Parse(Console.ReadLine());
        var loss = price2 + price1;
        
        int N = int.Parse(Console.ReadLine());
        var room = new HashSet<int>();
        for(int x = 0;x < N;x++){
            int input = int.Parse(Console.ReadLine());
            room.Add(input);
        }
        var ans = loss * (N - room.Count);
        Console.WriteLine(ans);
        
    }
}
0