fork(8) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int m, n, a, i, ami, ani;
  7. cin>>n>>m>>a;
  8. for (i=1;a<m;i++) ami=i;
  9. for (i=1;a<n;i++) ani=i;
  10. cout<<ami*ani;
  11. return 0;
  12. }
Time limit exceeded #stdin #stdout 15s 3296KB
stdin
6 6 4
stdout
Standard output is empty