Advertisement
MrMarvel

Untitled

Oct 6th, 2022 (edited)
1,008
0
300 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.34 KB | None | 0 0
  1. import java.util.*
  2.  
  3. fun main() {
  4.     val sc = Scanner(System.`in`)
  5.     var a = sc.nextInt()
  6.     var b = sc.nextInt()
  7.     var m = sc.nextInt()
  8.     var n = sc.nextInt()
  9.     if (a < b) {
  10.         val t = a
  11.         a = b
  12.         b = t
  13.     }
  14.     if (m < n) {
  15.         val t = m
  16.         m = n
  17.         n = t
  18.     }
  19.     print(m <= a || n <=b)
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement