Advertisement
erfanul007

CF 52 A

Dec 15th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. int n,i,k,r;
  6. scanf("%d",&n);
  7. for(i=1;i<=n;i++){
  8. scanf("%d",&k);
  9. r=ceil((double)k/7);
  10. printf("%d\n",r);
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement