結果

問題 No.485 方程式のお勉強
ユーザー megane_ankomegane_anko
提出日時 2021-02-10 23:38:45
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 10,181 ms
コンパイル使用メモリ 252,932 KB
実行使用メモリ 42,440 KB
最終ジャッジ日時 2023-09-22 20:14:34
合計ジャッジ時間 12,133 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
42,232 KB
testcase_01 AC 78 ms
42,244 KB
testcase_02 AC 77 ms
42,220 KB
testcase_03 AC 77 ms
42,292 KB
testcase_04 AC 77 ms
42,248 KB
testcase_05 AC 77 ms
42,220 KB
testcase_06 AC 77 ms
42,232 KB
testcase_07 AC 77 ms
42,404 KB
testcase_08 AC 77 ms
42,440 KB
testcase_09 AC 81 ms
42,404 KB
testcase_10 AC 80 ms
42,404 KB
testcase_11 AC 77 ms
42,284 KB
testcase_12 AC 76 ms
42,432 KB
testcase_13 AC 76 ms
42,352 KB
testcase_14 AC 77 ms
42,328 KB
testcase_15 AC 78 ms
42,240 KB
testcase_16 AC 76 ms
42,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import * as fs from 'fs';
const input = 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