結果
| 問題 | No.8062 A + B |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-20 23:36:51 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 814 bytes |
| コンパイル時間 | 8,186 ms |
| コンパイル使用メモリ | 168,936 KB |
| 実行使用メモリ | 191,688 KB |
| 最終ジャッジ日時 | 2025-11-20 23:37:05 |
| 合計ジャッジ時間 | 12,057 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 3 RE * 3 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (131 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics.X86;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
static string[] SList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => ReadLine()).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var c = ReadLine().Split();
WriteLine(Num(c[0]) + Num(c[1]));
}
static int Num(string s)
{
s = s.ToUpper();
if (s == "A") return 10;
else if (s == "-A") return -10;
else return int.Parse(s);
}
}