結果
| 問題 |
No.3124 Twin
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-20 20:42:29 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 525 bytes |
| コンパイル時間 | 7,640 ms |
| コンパイル使用メモリ | 168,904 KB |
| 実行使用メモリ | 183,820 KB |
| 最終ジャッジ日時 | 2025-05-20 20:42:41 |
| 合計ジャッジ時間 | 9,835 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (109 ミリ秒)。 /home/judge/data/code/Main.cs(10,19): warning CS8632: '#nullable' 注釈コンテキスト内のコードでのみ、Null 許容参照型の注釈を使用する必要があります。 [/home/judge/data/code/main.csproj] /home/judge/data/code/Main.cs(11,19): warning CS8632: '#nullable' 注釈コンテキスト内のコードでのみ、Null 許容参照型の注釈を使用する必要があります。 [/home/judge/data/code/main.csproj] main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
class Program
{
static void Main()
{
long x;
long y;
string? s = Console.ReadLine();
string? s2 = Console.ReadLine();
if (s == null) { return; }
if (s2 == null) { return; }
long.TryParse(s, out x);
long.TryParse(s2, out y);
if (x == y)
{
Console.WriteLine("Yes");
}
else
{
Console.WriteLine("No");
}
}
}