Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History

p1

README.md

Solution

  • This was meant to be a trivial problem that all ICS students should be able to complete, it only requires 1 simple if / else statement.

  • // assuming a is the first number, b is the second number and c is the answer.
    if(a * b == c){
    System.out.println("AC");
    } else {
    System.out.println("WA");
    }
  • Time Complexity: O ( 1 ).