結果

問題 No.485 方程式のお勉強
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2017-02-28 12:07:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 5,365 ms
コンパイル使用メモリ 105,052 KB
実行使用メモリ 25,860 KB
最終ジャッジ日時 2023-09-02 16:15:42
合計ジャッジ時間 5,758 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,904 KB
testcase_01 AC 59 ms
21,796 KB
testcase_02 AC 60 ms
25,860 KB
testcase_03 AC 58 ms
21,800 KB
testcase_04 AC 61 ms
21,892 KB
testcase_05 AC 58 ms
21,848 KB
testcase_06 AC 59 ms
21,904 KB
testcase_07 AC 61 ms
19,800 KB
testcase_08 AC 60 ms
23,836 KB
testcase_09 AC 61 ms
21,852 KB
testcase_10 AC 60 ms
21,796 KB
testcase_11 AC 60 ms
21,752 KB
testcase_12 AC 58 ms
19,852 KB
testcase_13 AC 59 ms
21,900 KB
testcase_14 AC 61 ms
23,792 KB
testcase_15 AC 61 ms
21,972 KB
testcase_16 AC 59 ms
21,832 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class Test
{
	public static void Main()
	{
		var AB = Console.ReadLine().Split().Select(int.Parse);
		int A = AB.First(), B = AB.Last();
		Console.WriteLine(B % A == 0 ? B / A : "NO");
	}
}
0