Skip to content

Instantly share code, notes, and snippets.

@cyberrob-zz
Created January 6, 2019 14:38
Show Gist options
  • Save cyberrob-zz/dc2460cee46ffdeee933403cb9a2d3c6 to your computer and use it in GitHub Desktop.
Save cyberrob-zz/dc2460cee46ffdeee933403cb9a2d3c6 to your computer and use it in GitHub Desktop.
/**
* Created by robertwang on 2019/1/6.
*/
fun main(args: Array<String>) {
if (args.size > 3) return
val numOfCountries = args[0].toInt()
val numOfSystems = args[1].toInt()
when {
numOfCountries == 1 -> println("Taiwan is NOT part of China!")
numOfCountries == 1 && numOfSystems == 2 -> println("See what's happening in HK")
numOfCountries == 2 && numOfSystems == 2 -> println("It's Taiwan Consensus!")
else -> println("Taiwan is a de-facto state country no matter what you said.")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment