結果
| 問題 | No.1229 ラグビーの得点パターン |
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-09-19 21:18:43 |
| 言語 | Kotlin (2.3.10) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 425 bytes |
| 記録 | |
| コンパイル時間 | 6,158 ms |
| コンパイル使用メモリ | 391,536 KB |
| 最終ジャッジ日時 | 2026-03-09 00:05:03 |
| 合計ジャッジ時間 | 6,596 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.kt:18:13: error: 'fun StringBuilder.appendln(value: Int): 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(ans)
^^^^^^^^
ソースコード
fun main() {
val builder = StringBuilder()
val n = readInputLine().toInt()
var ans = 0
for (p in 0..100) {
for (t in 0..100) {
for (g in 0..t) {
if (p * 3 + t * 5 + g * 2 == n) {
ans++
}
}
}
}
builder.appendln(ans)
print(builder.toString())
}
fun readInputLine(): String {
return readLine()!!
}
rutilicus