結果
| 問題 | No.1224 I hate Sqrt Inequality |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-08 21:50:28 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 14,128 ms |
| コンパイル使用メモリ | 436,100 KB |
| 実行使用メモリ | 57,268 KB |
| 最終ジャッジ日時 | 2024-07-22 15:44:36 |
| 合計ジャッジ時間 | 18,012 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"
})
}