結果
問題 |
No.485 方程式のお勉強
|
ユーザー |
![]() |
提出日時 | 2023-05-08 14:03:49 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 13,177 ms |
コンパイル使用メモリ | 167,356 KB |
実行使用メモリ | 182,044 KB |
最終ジャッジ日時 | 2024-11-25 06:43:27 |
合計ジャッジ時間 | 12,733 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (93 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System.Collections.Generic; using System; using System.Linq; using System.Drawing; using System.Runtime.Intrinsics.X86; namespace yukicoder { class Program { static void Main(string[] args) { var num = Console.ReadLine(); var a = num.Split(" "); var A = int.Parse(a[0]); var B = int.Parse(a[1]); if(B % A == 0) { Console.WriteLine(B / A); } else { Console.WriteLine("NO"); } } } }