結果
問題 |
No.586 ダブルブッキング
|
ユーザー |
![]() |
提出日時 | 2017-12-05 16:28:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 554 bytes |
コンパイル時間 | 2,305 ms |
コンパイル使用メモリ | 110,348 KB |
実行使用メモリ | 27,788 KB |
最終ジャッジ日時 | 2024-11-28 16:47:51 |
合計ジャッジ時間 | 1,620 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }