- 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;
}
Комментарии (4) RSS
Добавить комментарий