Submission #2124596
Source Code Expand
#include<stdio.h> #include<string.h> #include<algorithm> using namespace std; #define N 100010 int main() { long long x,y,z; scanf("%lld%lld",&x,&y); if(x==y) { printf("-1\n"); return 0; } for(long long i=2;i<=100000;i++) { z=x*i; if(z%y) { printf("%lld\n",z); return 0; } } printf("-1\n"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Two Integers |
User | vjudge2 |
Language | Bash (GNU bash v4.3.11) |
Score | 0 |
Code Size | 414 Byte |
Status | RE |
Exec Time | 2 ms |
Memory | 504 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt, 1_012.txt, 1_013.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | RE | 2 ms | 504 KB |
0_001.txt | RE | 2 ms | 504 KB |
1_002.txt | RE | 2 ms | 504 KB |
1_003.txt | RE | 2 ms | 504 KB |
1_004.txt | RE | 2 ms | 504 KB |
1_005.txt | RE | 2 ms | 504 KB |
1_006.txt | RE | 2 ms | 504 KB |
1_007.txt | RE | 2 ms | 504 KB |
1_008.txt | RE | 2 ms | 504 KB |
1_009.txt | RE | 2 ms | 504 KB |
1_010.txt | RE | 2 ms | 504 KB |
1_011.txt | RE | 2 ms | 504 KB |
1_012.txt | RE | 2 ms | 504 KB |
1_013.txt | RE | 2 ms | 504 KB |
for_sample.txt | RE | 2 ms | 504 KB |