結果

問題 No.1329 Square Sqsq
ユーザー 👑 箱星箱星
提出日時 2021-01-08 21:23:37
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 255 ms / 2,000 ms
コード長 635 bytes
コンパイル時間 9,774 ms
コンパイル使用メモリ 426,332 KB
実行使用メモリ 54,452 KB
最終ジャッジ日時 2024-04-28 01:51:17
合計ジャッジ時間 16,563 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 234 ms
54,316 KB
testcase_01 AC 237 ms
53,632 KB
testcase_02 AC 246 ms
53,912 KB
testcase_03 AC 246 ms
53,868 KB
testcase_04 AC 243 ms
53,856 KB
testcase_05 AC 248 ms
53,732 KB
testcase_06 AC 249 ms
53,744 KB
testcase_07 AC 247 ms
53,944 KB
testcase_08 AC 246 ms
53,744 KB
testcase_09 AC 253 ms
54,028 KB
testcase_10 AC 255 ms
53,908 KB
testcase_11 AC 255 ms
54,108 KB
testcase_12 AC 242 ms
53,928 KB
testcase_13 AC 253 ms
54,452 KB
testcase_14 AC 247 ms
53,844 KB
testcase_15 AC 241 ms
53,796 KB
testcase_16 AC 237 ms
53,880 KB
testcase_17 AC 243 ms
54,012 KB
testcase_18 AC 241 ms
53,812 KB
testcase_19 AC 241 ms
53,860 KB
testcase_20 AC 237 ms
54,052 KB
testcase_21 AC 252 ms
53,716 KB
testcase_22 AC 244 ms
54,048 KB
testcase_23 AC 238 ms
53,972 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