結果
| 問題 | No.687 E869120 and Constructing Array 1 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2018-06-02 16:09:25 |
| 言語 | Kotlin (2.4.10 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 83 ms / 1,000 ms |
| + 920µs | |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 7,446 ms |
| コンパイル使用メモリ | 500,396 KB |
| 実行使用メモリ | 45,884 KB |
| 最終ジャッジ日時 | 2026-09-27 02:25:59 |
| 合計ジャッジ時間 | 9,998 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
fun main(args:Array<String>) {
val n = readLine()!!.toInt()
(1..10).mapNotNull { a ->
val b = n -a
if( 10 >= b && b >= 1 ) Pair(a, b)
else null
}.first().let { println("${it.first} ${it.second}")}
}
💕💖💞