結果

問題 No.485 方程式のお勉強
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2017-02-28 12:08:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 831 ms
コンパイル使用メモリ 109,476 KB
実行使用メモリ 29,324 KB
最終ジャッジ日時 2024-04-14 23:07:57
合計ジャッジ時間 1,922 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
25,368 KB
testcase_01 AC 29 ms
25,136 KB
testcase_02 AC 29 ms
27,284 KB
testcase_03 AC 30 ms
25,108 KB
testcase_04 AC 29 ms
23,096 KB
testcase_05 AC 29 ms
25,236 KB
testcase_06 AC 30 ms
27,276 KB
testcase_07 AC 29 ms
27,168 KB
testcase_08 AC 28 ms
24,996 KB
testcase_09 AC 28 ms
25,392 KB
testcase_10 AC 30 ms
25,112 KB
testcase_11 AC 30 ms
25,112 KB
testcase_12 AC 29 ms
29,324 KB
testcase_13 AC 29 ms
27,036 KB
testcase_14 AC 29 ms
25,360 KB
testcase_15 AC 28 ms
25,388 KB
testcase_16 AC 28 ms
25,080 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).ToString() : "NO");
	}
}
0