- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
#include <iostream>
using namespace std;
unsigned ololo_div(unsigned what, unsigned by) {
unsigned cnt=0;
while( what>by ) {
what-=by;
cnt++;
}
if( what==0 ) cnt++;
return cnt;
}
int main() {
cout << ololo_div(10,0) << endl;
return 0;
}
Fai 23.04.2014 05:11 # +1
kipar 23.04.2014 08:42 # +1
Pythoner 23.04.2014 09:08 # +1
gost 23.04.2014 21:38 # 0