Advertisement
Saleh127

UVA 11231

Aug 23rd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; while(t--)
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);cout.tie(0);
  9.  
  10. ll a,c,d,e,f;
  11. while(cin>>a>>c>>d)
  12. {
  13. if(a==0 && c==0 && d==0) break;
  14. e=(a-7)*(c-7);
  15. if(d%2==0) cout<<e/2<<endl;
  16. else cout<<(e+1)/2<<endl;
  17. }
  18. return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement