Submission #855603


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class _C
{
	void _()
	{
		//
		var N = _Ns()[0];
		var K = _Ns()[0];
		var X = _Ns()[0];
		var Y = _Ns()[0];

		var ans = N * X;

		if(N-K>=1)
			ans -= ((N-K)*( X-Y));

		Console.WriteLine(ans);
}

Submission Info

Submission Time
Task A - 高橋君とホテルイージー / Tak and Hotels (ABC Edit)
User fujiyama
Language C# (Mono 4.6.2.0)
Score 0
Code Size 336 Byte
Status

Compile Error

./Main.cs(22,246): error CS1525: Unexpected symbol `end-of-file'