結果
| 問題 |
No.538 N.G.S.
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-08 01:10:01 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 579 bytes |
| コンパイル時間 | 888 ms |
| コンパイル使用メモリ | 107,784 KB |
| 実行使用メモリ | 26,076 KB |
| 最終ジャッジ日時 | 2024-10-06 10:14:04 |
| 合計ジャッジ時間 | 3,407 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 15 WA * 36 |
コンパイルメッセージ
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 NGS
{
class Program
{
static void Main(string[] args)
{
var inputs = Console.ReadLine().Split(' ');
var a1 = Int32.Parse(inputs[0]);
var a2 = Int32.Parse(inputs[1]);
var a3 = Int32.Parse(inputs[2]);
var r = (a2 - a3) / (a1 - a2);
var d = a2 - (r * a1);
var result = (a3 * r) + d;
Console.Write(result + "\n");
}
}
}