結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
aketijyuuzou
|
| 提出日時 | 2026-09-05 13:05:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,266 bytes |
| 記録 | |
| コンパイル時間 | 2,529 ms |
| コンパイル使用メモリ | 112,664 KB |
| 実行使用メモリ | 28,320 KB |
| 最終ジャッジ日時 | 2026-09-05 13:06:14 |
| 合計ジャッジ時間 | 4,993 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 13 WA * 20 |
コンパイルメッセージ
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;
class Program
{
static string InputPattern = "InputX";
static List<string> GetInputList()
{
var WillReturn = new List<string>();
if (InputPattern == "Input1") {
WillReturn.Add("204 507 241 694 2293 -1 -1");
}
else if (InputPattern == "Input2") {
WillReturn.Add("118 378 -1 -1 -1 -1 -1");
}
else if (InputPattern == "Input3") {
WillReturn.Add("1000 1000 1000 1000 1000 1000 1000");
}
else {
string wkStr;
while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
}
return WillReturn;
}
static long[] GetSplitArr(string pStr)
{
return (pStr == "" ? new string[0] : pStr.Split(' ')).Select(pX => long.Parse(pX)).ToArray();
}
static void Main()
{
List<string> InputList = GetInputList();
long[] TArr = GetSplitArr(InputList[0]);
long Sum = 0;
foreach (long EachA in TArr) {
if (EachA == -1) {
Console.WriteLine(-1);
continue;
}
Sum += EachA;
Console.WriteLine(6000 - Sum);
}
}
}
aketijyuuzou