Task: | Skittles |
Sender: | odanobunaga8199 |
Submission time: | 2024-11-18 16:41:03 +0200 |
Language: | C++ (C++20) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
#12 | WRONG ANSWER | 0.02 s | details |
#13 | WRONG ANSWER | 0.15 s | details |
#14 | WRONG ANSWER | 0.10 s | details |
#15 | WRONG ANSWER | 0.11 s | details |
#16 | WRONG ANSWER | 0.01 s | details |
#17 | WRONG ANSWER | 0.01 s | details |
#18 | WRONG ANSWER | 0.09 s | details |
#19 | WRONG ANSWER | 0.01 s | details |
#20 | WRONG ANSWER | 0.06 s | details |
#21 | WRONG ANSWER | 0.04 s | details |
#22 | WRONG ANSWER | 0.01 s | details |
#23 | WRONG ANSWER | 0.06 s | details |
#24 | WRONG ANSWER | 0.11 s | details |
#25 | WRONG ANSWER | 0.01 s | details |
#26 | WRONG ANSWER | 0.05 s | details |
#27 | WRONG ANSWER | 0.01 s | details |
#28 | WRONG ANSWER | 0.01 s | details |
#29 | WRONG ANSWER | 0.01 s | details |
#30 | WRONG ANSWER | 0.03 s | details |
#31 | WRONG ANSWER | 0.06 s | details |
#32 | WRONG ANSWER | 0.06 s | details |
#33 | WRONG ANSWER | 0.05 s | details |
#34 | WRONG ANSWER | 0.01 s | details |
#35 | WRONG ANSWER | 0.02 s | details |
#36 | WRONG ANSWER | 0.03 s | details |
#37 | WRONG ANSWER | 0.01 s | details |
#38 | WRONG ANSWER | 0.10 s | details |
#39 | WRONG ANSWER | 0.09 s | details |
#40 | WRONG ANSWER | 0.02 s | details |
#41 | WRONG ANSWER | 0.11 s | details |
#42 | WRONG ANSWER | 0.00 s | details |
#43 | WRONG ANSWER | 0.01 s | details |
#44 | WRONG ANSWER | 0.02 s | details |
#45 | WRONG ANSWER | 0.07 s | details |
#46 | WRONG ANSWER | 0.01 s | details |
#47 | WRONG ANSWER | 0.07 s | details |
#48 | WRONG ANSWER | 0.11 s | details |
#49 | WRONG ANSWER | 0.06 s | details |
#50 | WRONG ANSWER | 0.03 s | details |
#51 | WRONG ANSWER | 0.14 s | details |
#52 | WRONG ANSWER | 0.09 s | details |
#53 | WRONG ANSWER | 0.08 s | details |
#54 | WRONG ANSWER | 0.07 s | details |
#55 | WRONG ANSWER | 0.08 s | details |
#56 | WRONG ANSWER | 0.04 s | details |
#57 | WRONG ANSWER | 0.02 s | details |
#58 | WRONG ANSWER | 0.11 s | details |
#59 | WRONG ANSWER | 0.02 s | details |
#60 | WRONG ANSWER | 0.05 s | details |
#61 | WRONG ANSWER | 0.05 s | details |
#62 | WRONG ANSWER | 0.05 s | details |
#63 | WRONG ANSWER | 0.01 s | details |
Code
#include <bits/stdc++.h> using namespace std; int gcd(int a, int b) { while (b != 0) { int temp = b; b = a % b; a = temp; } return a; } int main() { ios::sync_with_stdio(false); cin.tie(0); int n, q; cin >> n >> q; while (q--) { int a, b; cin >> a >> b; int g = gcd(n, a); cout << n / g << endl; } return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1 1 10 |
correct output |
---|
10 |
user output |
---|
1 |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 3 3 |
correct output |
---|
4 |
user output |
---|
2 2 2 |
Test 3
Verdict: WRONG ANSWER
input |
---|
2 4 5 |
correct output |
---|
11 |
user output |
---|
2 2 2 2 |
Test 4
Verdict: WRONG ANSWER
input |
---|
3 4 5 |
correct output |
---|
36 |
user output |
---|
3 3 3 3 |
Test 5
Verdict: WRONG ANSWER
input |
---|
3 2 2 |
correct output |
---|
6 |
user output |
---|
3 3 |
Test 6
Verdict: WRONG ANSWER
input |
---|
5 5 5 |
correct output |
---|
126 |
user output |
---|
1 1 1 1 1 |
Test 7
Verdict: WRONG ANSWER
input |
---|
10 10 10 |
correct output |
---|
92378 |
user output |
---|
1 1 1 1 1 ... |
Test 8
Verdict: WRONG ANSWER
input |
---|
10 1 10 |
correct output |
---|
184755 |
user output |
---|
1 |
Test 9
Verdict: WRONG ANSWER
input |
---|
100 100 100 |
correct output |
---|
866655715 |
user output |
---|
1 1 1 1 1 ... Truncated |
Test 10
Verdict: WRONG ANSWER
input |
---|
10 100 100 |
correct output |
---|
918123961 |
user output |
---|
1 1 1 1 1 ... Truncated |
Test 11
Verdict: WRONG ANSWER
input |
---|
1000 10 10 |
correct output |
---|
84965120 |
user output |
---|
100 100 100 100 100 ... |
Test 12
Verdict: WRONG ANSWER
input |
---|
10000 10000 10000 |
correct output |
---|
658363258 |
user output |
---|
1 1 1 1 1 ... Truncated |
Test 13
Verdict: WRONG ANSWER
input |
---|
100000 100000 100000 |
correct output |
---|
966937032 |
user output |
---|
1 1 1 1 1 ... Truncated |
Test 14
Verdict: WRONG ANSWER
input |
---|
54883 59286 71521 |
correct output |
---|
908996595 |
user output |
---|
54883 54883 54883 54883 54883 ... Truncated |
Test 15
Verdict: WRONG ANSWER
input |
---|
41703 72034 99721 |
correct output |
---|
139159644 |
user output |
---|
41703 41703 41703 41703 41703 ... Truncated |
Test 16
Verdict: WRONG ANSWER
input |
---|
43601 2593 18509 |
correct output |
---|
804369499 |
user output |
---|
43601 43601 43601 43601 43601 ... Truncated |
Test 17
Verdict: WRONG ANSWER
input |
---|
55081 7073 70816 |
correct output |
---|
806880502 |
user output |
---|
55081 55081 55081 55081 55081 ... Truncated |
Test 18
Verdict: WRONG ANSWER
input |
---|
96705 54725 90064 |
correct output |
---|
521461113 |
user output |
---|
96705 96705 96705 96705 96705 ... Truncated |
Test 19
Verdict: WRONG ANSWER
input |
---|
22200 5519 87075 |
correct output |
---|
866679044 |
user output |
---|
296 296 296 296 296 ... Truncated |
Test 20
Verdict: WRONG ANSWER
input |
---|
89288 33199 94750 |
correct output |
---|
812654801 |
user output |
---|
44644 44644 44644 44644 44644 ... Truncated |
Test 21
Verdict: WRONG ANSWER
input |
---|
7631 22735 77994 |
correct output |
---|
30255908 |
user output |
---|
7631 7631 7631 7631 7631 ... Truncated |
Test 22
Verdict: WRONG ANSWER
input |
---|
87345 1112 96856 |
correct output |
---|
944788802 |
user output |
---|
87345 87345 87345 87345 87345 ... Truncated |
Test 23
Verdict: WRONG ANSWER
input |
---|
1038 36447 50189 |
correct output |
---|
654272260 |
user output |
---|
1038 1038 1038 1038 1038 ... Truncated |
Test 24
Verdict: WRONG ANSWER
input |
---|
41703 72034 99721 |
correct output |
---|
139159644 |
user output |
---|
41703 41703 41703 41703 41703 ... Truncated |
Test 25
Verdict: WRONG ANSWER
input |
---|
18028 1948 6831 |
correct output |
---|
631722506 |
user output |
---|
18028 18028 18028 18028 18028 ... Truncated |
Test 26
Verdict: WRONG ANSWER
input |
---|
4873 28912 79929 |
correct output |
---|
106074189 |
user output |
---|
4873 4873 4873 4873 4873 ... Truncated |
Test 27
Verdict: WRONG ANSWER
input |
---|
28606 2900 95813 |
correct output |
---|
538554734 |
user output |
---|
28606 28606 28606 28606 28606 ... Truncated |
Test 28
Verdict: WRONG ANSWER
input |
---|
25093 4610 68059 |
correct output |
---|
799962519 |
user output |
---|
25093 25093 25093 25093 25093 ... Truncated |
Test 29
Verdict: WRONG ANSWER
input |
---|
67575 4472 32712 |
correct output |
---|
857647130 |
user output |
---|
22525 22525 22525 22525 22525 ... Truncated |
Test 30
Verdict: WRONG ANSWER
input |
---|
82449 18136 86245 |
correct output |
---|
420446937 |
user output |
---|
82449 82449 82449 82449 82449 ... Truncated |
Test 31
Verdict: WRONG ANSWER
input |
---|
18558 38661 75914 |
correct output |
---|
924425479 |
user output |
---|
9279 9279 9279 9279 9279 ... Truncated |
Test 32
Verdict: WRONG ANSWER
input |
---|
35543 34086 47960 |
correct output |
---|
210554536 |
user output |
---|
35543 35543 35543 35543 35543 ... Truncated |
Test 33
Verdict: WRONG ANSWER
input |
---|
20101 32903 99080 |
correct output |
---|
88647511 |
user output |
---|
20101 20101 20101 20101 20101 ... Truncated |
Test 34
Verdict: WRONG ANSWER
input |
---|
18028 1948 6831 |
correct output |
---|
631722506 |
user output |
---|
18028 18028 18028 18028 18028 ... Truncated |
Test 35
Verdict: WRONG ANSWER
input |
---|
61218 12076 16908 |
correct output |
---|
820171450 |
user output |
---|
10203 10203 10203 10203 10203 ... Truncated |
Test 36
Verdict: WRONG ANSWER
input |
---|
78139 13111 69284 |
correct output |
---|
904117059 |
user output |
---|
78139 78139 78139 78139 78139 ... Truncated |
Test 37
Verdict: WRONG ANSWER
input |
---|
45455 2862 43952 |
correct output |
---|
430742811 |
user output |
---|
45455 45455 45455 45455 45455 ... Truncated |
Test 38
Verdict: WRONG ANSWER
input |
---|
84538 61888 77158 |
correct output |
---|
294818599 |
user output |
---|
42269 42269 42269 42269 42269 ... Truncated |
Test 39
Verdict: WRONG ANSWER
input |
---|
26937 59685 80971 |
correct output |
---|
680140546 |
user output |
---|
26937 26937 26937 26937 26937 ... Truncated |
Test 40
Verdict: WRONG ANSWER
input |
---|
30632 9727 88573 |
correct output |
---|
877318826 |
user output |
---|
30632 30632 30632 30632 30632 ... Truncated |
Test 41
Verdict: WRONG ANSWER
input |
---|
55737 66074 71002 |
correct output |
---|
123569267 |
user output |
---|
55737 55737 55737 55737 55737 ... Truncated |
Test 42
Verdict: WRONG ANSWER
input |
---|
59351 587 51636 |
correct output |
---|
122513346 |
user output |
---|
59351 59351 59351 59351 59351 ... Truncated |
Test 43
Verdict: WRONG ANSWER
input |
---|
8954 7866 51810 |
correct output |
---|
961929284 |
user output |
---|
407 407 407 407 407 ... Truncated |
Test 44
Verdict: WRONG ANSWER
input |
---|
61218 12076 16908 |
correct output |
---|
820171450 |
user output |
---|
10203 10203 10203 10203 10203 ... Truncated |
Test 45
Verdict: WRONG ANSWER
input |
---|
9556 43003 92502 |
correct output |
---|
424034313 |
user output |
---|
4778 4778 4778 4778 4778 ... Truncated |
Test 46
Verdict: WRONG ANSWER
input |
---|
20433 945 23474 |
correct output |
---|
794687216 |
user output |
---|
20433 20433 20433 20433 20433 ... Truncated |
Test 47
Verdict: WRONG ANSWER
input |
---|
9941 45344 78340 |
correct output |
---|
875489658 |
user output |
---|
9941 9941 9941 9941 9941 ... Truncated |
Test 48
Verdict: WRONG ANSWER
input |
---|
82532 68582 70655 |
correct output |
---|
238007640 |
user output |
---|
82532 82532 82532 82532 82532 ... Truncated |
Test 49
Verdict: WRONG ANSWER
input |
---|
52729 37586 66259 |
correct output |
---|
93243919 |
user output |
---|
52729 52729 52729 52729 52729 ... Truncated |
Test 50
Verdict: WRONG ANSWER
input |
---|
10475 17392 24871 |
correct output |
---|
977605482 |
user output |
---|
10475 10475 10475 10475 10475 ... Truncated |
Test 51
Verdict: WRONG ANSWER
input |
---|
76232 88012 95143 |
correct output |
---|
871309467 |
user output |
---|
76232 76232 76232 76232 76232 ... Truncated |
Test 52
Verdict: WRONG ANSWER
input |
---|
77184 58424 64500 |
correct output |
---|
693972156 |
user output |
---|
6432 6432 6432 6432 6432 ... Truncated |
Test 53
Verdict: WRONG ANSWER
input |
---|
96888 47083 55295 |
correct output |
---|
406195062 |
user output |
---|
96888 96888 96888 96888 96888 ... Truncated |
Test 54
Verdict: WRONG ANSWER
input |
---|
9556 43003 92502 |
correct output |
---|
424034313 |
user output |
---|
4778 4778 4778 4778 4778 ... Truncated |
Test 55
Verdict: WRONG ANSWER
input |
---|
83891 47894 87748 |
correct output |
---|
686766192 |
user output |
---|
83891 83891 83891 83891 83891 ... Truncated |
Test 56
Verdict: WRONG ANSWER
input |
---|
85080 21779 92819 |
correct output |
---|
114946782 |
user output |
---|
85080 85080 85080 85080 85080 ... Truncated |
Test 57
Verdict: WRONG ANSWER
input |
---|
88235 6779 56603 |
correct output |
---|
70147249 |
user output |
---|
88235 88235 88235 88235 88235 ... Truncated |
Test 58
Verdict: WRONG ANSWER
input |
---|
88858 66896 98375 |
correct output |
---|
601764178 |
user output |
---|
88858 88858 88858 88858 88858 ... Truncated |
Test 59
Verdict: WRONG ANSWER
input |
---|
50586 8901 76084 |
correct output |
---|
881324074 |
user output |
---|
25293 25293 25293 25293 25293 ... Truncated |
Test 60
Verdict: WRONG ANSWER
input |
---|
87594 26882 34225 |
correct output |
---|
42681251 |
user output |
---|
87594 87594 87594 87594 87594 ... Truncated |
Test 61
Verdict: WRONG ANSWER
input |
---|
73130 30310 55103 |
correct output |
---|
843664756 |
user output |
---|
73130 73130 73130 73130 73130 ... Truncated |
Test 62
Verdict: WRONG ANSWER
input |
---|
63584 31874 92876 |
correct output |
---|
437812641 |
user output |
---|
15896 15896 15896 15896 15896 ... Truncated |
Test 63
Verdict: WRONG ANSWER
input |
---|
88714 2531 74051 |
correct output |
---|
603847190 |
user output |
---|
88714 88714 88714 88714 88714 ... Truncated |