結果

問題 No.485 方程式のお勉強
ユーザー megane_ankomegane_anko
提出日時 2021-02-10 23:10:45
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 9,327 ms
コンパイル使用メモリ 254,428 KB
実行使用メモリ 42,400 KB
最終ジャッジ日時 2023-09-22 19:31:25
合計ジャッジ時間 11,796 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
42,232 KB
testcase_01 AC 76 ms
42,204 KB
testcase_02 AC 76 ms
42,248 KB
testcase_03 AC 75 ms
42,344 KB
testcase_04 AC 77 ms
42,252 KB
testcase_05 AC 77 ms
42,232 KB
testcase_06 AC 76 ms
42,196 KB
testcase_07 AC 77 ms
42,312 KB
testcase_08 AC 76 ms
42,304 KB
testcase_09 AC 78 ms
42,196 KB
testcase_10 AC 78 ms
42,256 KB
testcase_11 AC 77 ms
42,304 KB
testcase_12 AC 76 ms
42,308 KB
testcase_13 AC 77 ms
42,400 KB
testcase_14 AC 77 ms
42,200 KB
testcase_15 AC 78 ms
42,192 KB
testcase_16 AC 76 ms
42,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

const input = require('fs').readFileSync('/dev/stdin', 'utf8');

let arr  = input.split(' ');
let A = parseInt(arr[0]);
let B = parseInt(arr[1]);
let x = B / A;

if ((B % A) === 0) {
    console.log(x);
} else {
    console.log("NO");
}
0