1 solutions
-
0
#include <stdio.h> int main() { int F = 97; int B = 127; int x = 0; int y = 0; int j = 0; int k=0; int m=0; int sum1; int sum2; int num1,num2; int temp; for (x = 1; x < 1000; x++) { for (y = 1; y < 1000; y++) { sum1 = F * x - B * y; if (sum1 == 1) { m = 1; break; } } if (m == 1) break; } m = 0; for(k=1;k<1000;k++) { for (j = 1; j<1000; j++) { sum2 = F * j - B * k; if (sum2 == 1) { m = 1; break; } } if (m == 1) break; } num1 = x + y; num2 = j + k; if (num1 > num2) temp = num2; else temp = num1; printf("%d",temp); return 0; }
- 1
Information
- ID
- 6903
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- (None)
- # Submissions
- 13
- Accepted
- 7
- Uploaded By