fork download
  1. fun main() {
  2. println(compareTimeSpent(300, 250))
  3. println(compareTimeSpent(300, 300))
  4. println(compareTimeSpent(200, 220))
  5. }
  6.  
  7. fun compareTimeSpent(
  8. timeSpentToday: Int,
  9. timeSpentYesterday: Int
  10. ): Boolean = timeSpentToday > timeSpentYesterday
Success #stdin #stdout 0.07s 37872KB
stdin
Standard input is empty
stdout
true
false
false