Submission #10303201
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using ll = long long; int main(void) { int a,b,c; cin >> a >> b >> c; int d = a%b; rep2(i,1,101){ int e = d*i; if(e%b == c) { cout << "Yes" << endl; break; } if(i==100) cout << "No" << endl; } }
Submission Info
Submission Time | |
---|---|
Task | B - Choose Integers |
User | panen |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 447 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2, example3, example4 |
All | ansno0, ansno1, ansno2, ansno3, ansno4, ansyes0, ansyes1, ansyes2, ansyes3, ansyes4, example0, example1, example2, example3, example4 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
ansno0 | WA | 1 ms | 256 KB |
ansno1 | WA | 1 ms | 256 KB |
ansno2 | WA | 1 ms | 256 KB |
ansno3 | WA | 1 ms | 256 KB |
ansno4 | WA | 1 ms | 256 KB |
ansyes0 | WA | 1 ms | 256 KB |
ansyes1 | WA | 1 ms | 256 KB |
ansyes2 | WA | 1 ms | 256 KB |
ansyes3 | WA | 1 ms | 256 KB |
ansyes4 | WA | 1 ms | 256 KB |
example0 | WA | 1 ms | 256 KB |
example1 | WA | 1 ms | 256 KB |
example2 | WA | 1 ms | 256 KB |
example3 | WA | 1 ms | 256 KB |
example4 | WA | 1 ms | 256 KB |