結果

問題 No.538 N.G.S.
ユーザー 💕💖💞💕💖💞
提出日時 2017-07-01 07:19:54
言語 Kotlin
(1.9.23)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 231 bytes
コンパイル時間 11,432 ms
コンパイル使用メモリ 436,700 KB
実行使用メモリ 57,080 KB
最終ジャッジ日時 2024-04-30 15:06:30
合計ジャッジ時間 30,437 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 312 ms
56,960 KB
testcase_01 AC 313 ms
56,952 KB
testcase_02 AC 316 ms
56,868 KB
testcase_03 AC 311 ms
56,860 KB
testcase_04 AC 314 ms
56,984 KB
testcase_05 AC 316 ms
56,948 KB
testcase_06 AC 314 ms
56,928 KB
testcase_07 AC 316 ms
56,856 KB
testcase_08 AC 316 ms
56,852 KB
testcase_09 AC 314 ms
56,852 KB
testcase_10 AC 315 ms
56,856 KB
testcase_11 AC 318 ms
56,840 KB
testcase_12 AC 313 ms
56,836 KB
testcase_13 AC 313 ms
56,964 KB
testcase_14 AC 314 ms
56,988 KB
testcase_15 AC 312 ms
56,816 KB
testcase_16 AC 315 ms
56,848 KB
testcase_17 AC 316 ms
56,856 KB
testcase_18 AC 312 ms
56,816 KB
testcase_19 AC 317 ms
56,828 KB
testcase_20 AC 315 ms
56,916 KB
testcase_21 AC 317 ms
56,908 KB
testcase_22 AC 318 ms
56,944 KB
testcase_23 AC 312 ms
56,904 KB
testcase_24 AC 318 ms
56,920 KB
testcase_25 AC 317 ms
56,856 KB
testcase_26 AC 314 ms
56,840 KB
testcase_27 AC 320 ms
56,980 KB
testcase_28 AC 316 ms
56,896 KB
testcase_29 AC 315 ms
57,048 KB
testcase_30 AC 316 ms
56,924 KB
testcase_31 AC 316 ms
56,968 KB
testcase_32 AC 311 ms
56,820 KB
testcase_33 AC 314 ms
56,976 KB
testcase_34 AC 314 ms
56,808 KB
testcase_35 AC 315 ms
56,832 KB
testcase_36 AC 313 ms
56,832 KB
testcase_37 AC 313 ms
56,920 KB
testcase_38 AC 318 ms
56,956 KB
testcase_39 AC 314 ms
56,944 KB
testcase_40 AC 314 ms
56,948 KB
testcase_41 AC 311 ms
56,860 KB
testcase_42 AC 316 ms
56,936 KB
testcase_43 AC 315 ms
56,824 KB
testcase_44 AC 314 ms
56,800 KB
testcase_45 AC 314 ms
56,952 KB
testcase_46 AC 316 ms
56,984 KB
testcase_47 AC 312 ms
56,824 KB
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 312 ms
56,820 KB
testcase_52 AC 312 ms
56,912 KB
testcase_53 WA -
testcase_54 AC 311 ms
56,836 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:11: warning: parameter 'args' is never used
fun main( args : Array<String> ) {
          ^

ソースコード

diff #

fun main( args : Array<String> ) {
  val (a, b, c) = readLine()!!.split(" ").map { it.toLong() }
  // c = n * b + d
  // b = n * a + d
  val n = (c - b) / (b - a).toDouble() 
  val d = c - n * b
  println("${(n*c + d).toLong()}")
}
0