結果

問題 No.1329 Square Sqsq
ユーザー 👑 箱
提出日時 2021-01-08 21:23:37
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 281 ms / 2,000 ms
コード長 635 bytes
コンパイル時間 11,936 ms
コンパイル使用メモリ 420,104 KB
実行使用メモリ 52,540 KB
最終ジャッジ日時 2023-08-10 08:19:29
合計ジャッジ時間 19,775 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 269 ms
50,448 KB
testcase_01 AC 261 ms
50,416 KB
testcase_02 AC 265 ms
50,388 KB
testcase_03 AC 276 ms
52,200 KB
testcase_04 AC 273 ms
52,200 KB
testcase_05 AC 275 ms
52,272 KB
testcase_06 AC 272 ms
52,416 KB
testcase_07 AC 273 ms
52,524 KB
testcase_08 AC 275 ms
52,384 KB
testcase_09 AC 276 ms
52,540 KB
testcase_10 AC 274 ms
52,204 KB
testcase_11 AC 273 ms
52,468 KB
testcase_12 AC 275 ms
52,488 KB
testcase_13 AC 274 ms
52,304 KB
testcase_14 AC 262 ms
50,596 KB
testcase_15 AC 261 ms
50,136 KB
testcase_16 AC 263 ms
50,604 KB
testcase_17 AC 260 ms
50,460 KB
testcase_18 AC 273 ms
50,588 KB
testcase_19 AC 274 ms
50,124 KB
testcase_20 AC 264 ms
50,556 KB
testcase_21 AC 262 ms
50,428 KB
testcase_22 AC 281 ms
52,316 KB
testcase_23 AC 264 ms
50,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter
import java.util.*
import kotlin.math.*

fun PrintWriter.solve() {
    val s = nextLine()
    val n = s.length
    println((n + 1) / 2)
}

fun main() {
    val writer = PrintWriter(System.out, false)
    writer.solve()
    writer.flush()
}

// region Scanner
private var st = StringTokenizer("")
private val br = System.`in`.bufferedReader()

fun next(): String {
    while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())
    return st.nextToken()
}

fun nextInt() = next().toInt()
fun nextLong() = next().toLong()
fun nextLine() = br.readLine()!!
fun nextDouble() = next().toDouble()
// endregion
0