結果

問題 No.485 方程式のお勉強
ユーザー megane_anko
提出日時 2021-02-10 23:38:45
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 7,970 ms
コンパイル使用メモリ 229,920 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-12-31 16:23:20
合計ジャッジ時間 9,338 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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