Advertisement
Farjana_akter

Untitled

Feb 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n,r,i=0,j,k,s,a,b,c,d,e;
  7. while(cin>>r>>n)
  8. {
  9.  
  10. if(r==0||n==0)
  11. break;
  12. r--;
  13. a=(r/n);
  14. if(a>26)
  15. cout<<"Case "<<++i<<": "<<"impossible"<<endl;
  16. else
  17. cout<<"Case "<<++i<<": "<<a<<endl;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement