結果
| 問題 | No.1224 I hate Sqrt Inequality |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-08 21:50:28 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 9,490 ms |
| コンパイル使用メモリ | 467,372 KB |
| 実行使用メモリ | 59,840 KB |
| 最終ジャッジ日時 | 2026-04-03 09:50:12 |
| 合計ジャッジ時間 | 14,384 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 13 |
ソースコード
import java.math.BigDecimal
import java.math.RoundingMode
fun main() {
val d = readLine()!!
val (a, b) = d.split(' ').map(String::toBigInteger)
println(try {
BigDecimal(a, 100).divide(BigDecimal(b, 100), RoundingMode.UNNECESSARY)
"Yes"
} catch (e: ArithmeticException /* 割り切れない */) {
"No"
})
}