Ejemplo n.º 1
0
int main(int argc, char **argv)
{
    int start = 0, end = 0;

    while(scanf("%d %d", &start, &end) != EOF)
    {
        printf("%d %d %d\n", start, end, max_cycle(start, end));
    }
    return 0;
}
Ejemplo n.º 2
0
int main(int argc, char *argv[])
{
    int i = 0;
    int j = 0;

    while (scanf("%d %d", &i, &j) > 0) {
        printf("%d %d %d\n", i, j, max_cycle(i, j));
    }

    return EXIT_SUCCESS;
}
Ejemplo n.º 3
0
int main() {
  int i, j;
  long max; 
  
  #ifndef JUDGE_ONLINE 
  test();
  #endif

  while(std::cin >> i >> j) {
    max = max_cycle(i, j);
    std::cout << i << " " << j << " " << max << std::endl;
  }

  return 0;
}
Ejemplo n.º 4
0
void test() {
  assert ( 20 == max_cycle(  1,   10));
  assert (125 == max_cycle(100,  200));
  assert ( 89 == max_cycle(201,  210));
  assert (174 == max_cycle(900, 1000));
}