結果
| 問題 |
No.1453 手助け
|
| コンテスト | |
| ユーザー |
AAAAAA
|
| 提出日時 | 2021-03-31 21:12:08 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,479 bytes |
| コンパイル時間 | 1,781 ms |
| コンパイル使用メモリ | 108,596 KB |
| 実行使用メモリ | 26,380 KB |
| 最終ジャッジ日時 | 2024-12-15 13:34:44 |
| 合計ジャッジ時間 | 3,305 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 19 |
コンパイルメッセージ
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;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp189
{
class Program
{
static void Main(string[] args)
{
string[] str = Console.ReadLine().Split();
int a = int.Parse(str[0]);
int b = int.Parse(str[1]);
int c = int.Parse(str[2]);
int d = int.Parse(str[3]);
int e = int.Parse(str[4]);
int kin = 0;
int x = 0;
int kosuu = (b - c) * a;
for(int i = 1; i <= kosuu; i++)
{
if (i == 1)
{
kin += d;
x = d;
}
if (i % 10 == 0)
{
if (e <= x)
{
if (x - e>0)
{
kin += (x - e);
x = x - e;
}
else
{
x = 0;
}
}
else
{
kin += x;
}
}
else
{
kin += x;
}
}
Console.WriteLine(kin);
Console.ReadLine();
}
}
}
AAAAAA