結果
問題 | No.480 合計 |
ユーザー | rutilicus |
提出日時 | 2020-08-30 20:36:39 |
言語 | Kotlin (1.9.23) |
結果 |
AC
|
実行時間 | 265 ms / 2,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 10,263 ms |
コンパイル使用メモリ | 421,584 KB |
実行使用メモリ | 56,924 KB |
最終ジャッジ日時 | 2024-04-27 13:09:19 |
合計ジャッジ時間 | 15,984 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 255 ms
56,816 KB |
testcase_01 | AC | 255 ms
56,816 KB |
testcase_02 | AC | 259 ms
56,828 KB |
testcase_03 | AC | 263 ms
56,832 KB |
testcase_04 | AC | 257 ms
56,776 KB |
testcase_05 | AC | 263 ms
56,784 KB |
testcase_06 | AC | 257 ms
56,744 KB |
testcase_07 | AC | 262 ms
56,832 KB |
testcase_08 | AC | 261 ms
56,712 KB |
testcase_09 | AC | 254 ms
56,788 KB |
testcase_10 | AC | 265 ms
56,772 KB |
testcase_11 | AC | 263 ms
56,840 KB |
testcase_12 | AC | 257 ms
56,852 KB |
testcase_13 | AC | 255 ms
56,780 KB |
testcase_14 | AC | 254 ms
56,924 KB |
testcase_15 | AC | 263 ms
56,872 KB |
testcase_16 | AC | 261 ms
56,804 KB |
testcase_17 | AC | 256 ms
56,788 KB |
testcase_18 | AC | 263 ms
56,716 KB |
testcase_19 | AC | 260 ms
56,832 KB |
testcase_20 | AC | 256 ms
56,784 KB |
testcase_21 | AC | 254 ms
56,828 KB |
コンパイルメッセージ
Main.kt:6:13: warning: 'appendln(Int): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator. builder.appendln(n * (n + 1) / 2) ^
ソースコード
fun main() { val builder = StringBuilder() val n = readInputLine().toInt() builder.appendln(n * (n + 1) / 2) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }