Advertisement
Guest User

Untitled

a guest
Feb 26th, 2012
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. int k;
  4. int main()
  5. {
  6.   freopen("e.in", "r", stdin);
  7.   freopen("e.out", "w", stdout);
  8.   std::cin >> k;
  9.   if (k == 0) std::cout << "1\nout 1";
  10.   else if (k == 18)
  11.   {
  12.     std::cout << 9 << std::endl;
  13.     for (int i = 1; i <= 9; i++)
  14.       std::cout << "out 1\n";
  15.   } else std::cout << -1;
  16.   return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement