Submission #2050829


Source Code Expand

Copy
#include <iostream>
#include <vector>
using namespace std;
int main(){
  long long int X, Y;
  cin >> X >> Y;
  if(X%Y == 0) cout << -1 << endl;
  else cout << X << endl;
  return 0;
}

Submission Info

Submission Time
Task A - Two Integers
User TAB
Language C++14 (GCC 5.4.1)
Score 100
Code Size 195 Byte
Status
Exec Time 7 ms
Memory 764 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt
All 100 / 100 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 7 ms 764 KB
0_001.txt 1 ms 256 KB
1_002.txt 1 ms 256 KB
1_003.txt 1 ms 256 KB
1_004.txt 1 ms 256 KB
1_005.txt 1 ms 256 KB
1_006.txt 1 ms 256 KB
1_007.txt 1 ms 256 KB
1_008.txt 1 ms 256 KB
1_009.txt 1 ms 256 KB
1_010.txt 1 ms 256 KB
1_011.txt 1 ms 256 KB
1_012.txt 1 ms 256 KB
1_013.txt 1 ms 256 KB
for_sample.txt 1 ms 256 KB