結果
| 問題 | No.537 ユーザーID |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2017-07-01 06:40:56 |
| 言語 | Kotlin (2.4.21 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 193 ms / 2,000 ms |
| + 533µs | |
| コード長 | 557 bytes |
| 記録 | |
| コンパイル時間 | 10,605 ms |
| コンパイル使用メモリ | 508,208 KB |
| 実行使用メモリ | 65,648 KB |
| 最終ジャッジ日時 | 2026-09-27 00:16:32 |
| 合計ジャッジ時間 | 14,620 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
import java.lang.Math
fun main( args : Array<String> ) {
readLine()!!.toLong()
.let {
(1..Math.pow(it.toDouble(), 0.5).toLong()).map { i ->
when {
it%i.toLong() == 0L -> Pair(i, it/i)
else -> null
}
}.filter {
it != null
}.toSet()
.let {
it.map {
listOf( it!!.first.toString() + it!!.second.toString() , it!!.second.toString() + it!!.first.toString() )
}.flatMap { it
}.toSet()
.let {
println(it.size)
}
}
}
}
💕💖💞