smoothie-web Problems Contests Ranking About
Login Register

BSSPC 2019 P1 - Complex Contest Judging

data_usage Points
1
timer Time Limit
linear_scale Memory Limit
Created
1586405026271

Problem Statement

Mr. A just spent the last month working on a judge for the Complex Judging Programming Contest. It was all going great, until he realized he forgot to write the grader server!

Thankfully, this contest (for whatever reason...) only has 1 problem, A times B. Since Mr. A has just about had it after writing all this PHP for the judge, help him by creating a simple grader server!

Input Specification

The first line will contain the space-separated integers a and b (1 ≤ a, b ≤ 100), which is the test case (numbers to multiply). The second line will contain the integer c, which is the user’s program’s output.

Output Specification

Output on one line AC if the user’s program’s output was correct, and WA if the output was wrong.

Sample Input 1

2 3
6

Sample Output 1

AC

Sample Input 2

2 3
5

Sample Output 2

WA