Advertisement
Carbastan

Problema ZTS

Nov 12th, 2022 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     long long n;
  8.     cin >> n;
  9.  
  10.     for(int i = 1; i <= n; ++ i)
  11.     {
  12.         unsigned long long x;
  13.         cin >> x;
  14.         cout << x % 7 << "\n";
  15.     }
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement