|
|
вернуться в форумWA 15 HELP me PLEASE Послано Caesar 29 фев 2012 17:59 Sorry, but I don't understand this problem (WA 15) Here is my code (C++) Help me please: what is wrong? #include <iostream> using namespace std; int main() { double a,b,d,e; int c,f; cin >> a; cin >> b; a=a*1000000; b=b*1000000; for (c=1;c<=100000;c++) { d=(double)100*1000000/c; e=0; f=0; while (e<=b) { if (e>a and e<b) { cout << c << endl; f=1; break; } e=e+d; } if (f==1) break; } } |
|
|