結果
| 問題 |
No.3259 C++ → Rust → Python
|
| コンテスト | |
| ユーザー |
aketijyuuzou
|
| 提出日時 | 2025-09-06 13:03:41 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| コード長 | 1,413 bytes |
| コンパイル時間 | 8,569 ms |
| コンパイル使用メモリ | 169,564 KB |
| 実行使用メモリ | 189,188 KB |
| 最終ジャッジ日時 | 2025-09-06 13:04:29 |
| 合計ジャッジ時間 | 11,097 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (115 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
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("245 420");
//2
}
else if (InputPattern == "Input2") {
WillReturn.Add("417 417");
//0
}
else if (InputPattern == "Input3") {
WillReturn.Add("290 300");
//1
}
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[] wkArr = GetSplitArr(InputList[0]);
long L = wkArr[0];
long R = wkArr[1];
var LangSet = new HashSet<string>();
for (long I = L; I <= R; I++) {
LangSet.Add(GetLang(I));
}
Console.WriteLine(LangSet.Count - 1);
}
static string GetLang(long pNo)
{
if (1 <= pNo && pNo <= 295) return "C++";
if (296 <= pNo && pNo <= 416) return "Rust";
return "Python";
}
}
aketijyuuzou