Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
sabira-khan committed Mar 12, 2022
1 parent 3fd4c89 commit b48362b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions JavaSolutions/src/com/gitproject/Beecrowd2770_uri.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.gitproject;
import java.util.Scanner;

public class Beecrowd2770_uri {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
while (s.hasNext()) {
int x = s.nextInt();
int y = s.nextInt();
int m = s.nextInt();

for (int i = 0; i < m; i++) {
int xi = s.nextInt();
int yi = s.nextInt();
System.out.println( (xi <= x && yi <= y || xi <= y && yi <= x) ? "Sim" : "Nao");
}
}
}
}

0 comments on commit b48362b

Please sign in to comment.