結果

問題 No.369 足し間違い
ユーザー firiexpfiriexp
提出日時 2019-03-02 16:49:45
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 355 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 9,084 ms
コンパイル使用メモリ 435,104 KB
実行使用メモリ 59,600 KB
最終ジャッジ日時 2024-04-30 19:56:01
合計ジャッジ時間 12,267 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
56,924 KB
testcase_01 AC 272 ms
56,816 KB
testcase_02 AC 263 ms
56,872 KB
testcase_03 AC 273 ms
56,988 KB
testcase_04 AC 353 ms
59,448 KB
testcase_05 AC 294 ms
57,172 KB
testcase_06 AC 355 ms
57,316 KB
testcase_07 AC 351 ms
59,600 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^
Main.kt:2:9: warning: variable 'n' is never used
    val n = readLine()!!.toInt()
        ^

ソースコード

diff #

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val s = readLine()!!.split(" ").map(String::toInt).sum()
    val t = readLine()!!.toInt()
    println(s-t)
}
0