結果
問題 |
No.3124 Twin
|
ユーザー |
|
提出日時 | 2025-05-20 20:45:18 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 559 bytes |
コンパイル時間 | 7,555 ms |
コンパイル使用メモリ | 169,676 KB |
実行使用メモリ | 185,116 KB |
最終ジャッジ日時 | 2025-05-20 20:45:28 |
合計ジャッジ時間 | 9,609 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 17 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (99 ミリ秒)。 /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; } if(!long.TryParse(s, out x)) { return; }; if(!long.TryParse(s2, out y)) { return; }; if (x == y) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } }