0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Atomic Kotlinの誤記載:NumberTypes/Task4.kt

Last updated at Posted at 2021-05-15

intelliJIdeaのプラグイン(Edu Tools)Atomic Kotlinというコースで学ぶ中で、明らかにコース作成者側のミスと思われるものを見かけたので、他の学習者のために残す。
この記事はエクササイズ:NumberTypes/Task4.ktについて。
目次はこちら

NumberTypes/Task4.kt

課題内容

NumberTypes_Task4.kt.01..jpg
5行目のTODO()を編集して、7行目のfun main(){}を実行してすること。
初めから、fun main()にはargumentとして(1,30,0)が入力されている。

問題点

TODO()に正解例のコードを入力しても、右サイドバーにある正解(Expected)の数字(3600000000000000)にはならない。
fun main()にデフォルトで入力されているargumentを、(1000000000,0,0)に入力し直さないといけない。
NumberTypes_Task4.kt.02..jpg

一度【Check】をして右サイドバーに間違いへのメッセージを表示させない限り、10億時間のミリ秒変換をするというのは分からない。

解決策

NumberTypes_Task4.kt.03..jpg
上述の通り。
fun main()にデフォルトで入力されているargumentを、(1000000000,0,0)に入力し直す。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?