結果
問題 | No.485 方程式のお勉強 |
ユーザー |
![]() |
提出日時 | 2021-02-10 23:10:45 |
言語 | TypeScript (5.7.2) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 8,847 ms |
コンパイル使用メモリ | 228,360 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-12-31 16:23:19 |
合計ジャッジ時間 | 10,059 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
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");}