結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-08-30 20:36:39 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 302 ms / 2,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 9,816 ms |
| コンパイル使用メモリ | 423,348 KB |
| 実行使用メモリ | 56,928 KB |
| 最終ジャッジ日時 | 2024-11-15 15:17:37 |
| 合計ジャッジ時間 | 17,277 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
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()!!
}
rutilicus