thank you
it's can get AC
Search found 3 matches
- Fri Jan 26, 2007 5:57 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101927
- Fri Jan 26, 2007 5:03 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101927
10035 WA
please tell me where is wrong
I have tried many times,but I didn't find wrong.
Thx
=============================================
#include <iostream>
using namespace std;
int test(int n1, int n2)
{
int times=0;
int r_n1,r_n2;
while(n1!=0 || n2!=0)
{
r_n1 = n1 % 10;
r_n2 = n2 % 10;
n1/=10 ...
I have tried many times,but I didn't find wrong.
Thx
=============================================
#include <iostream>
using namespace std;
int test(int n1, int n2)
{
int times=0;
int r_n1,r_n2;
while(n1!=0 || n2!=0)
{
r_n1 = n1 % 10;
r_n2 = n2 % 10;
n1/=10 ...
- Fri Dec 22, 2006 5:23 pm
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 18842
acm 476 runtime error(Signal 11)
Here is my code.
I try a lot of times.
But I can't get AC.Please help.Thanks
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
float str_to_float(string &s)
{
int count=0;
string temp;
double i_num,f_num,result;
for(int i=0;i < int(s.size());++i)
{
++count;
if(s ...
I try a lot of times.
But I can't get AC.Please help.Thanks
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
float str_to_float(string &s)
{
int count=0;
string temp;
double i_num,f_num,result;
for(int i=0;i < int(s.size());++i)
{
++count;
if(s ...