Search found 2 matches
- Sun Jun 24, 2012 10:50 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101941
Re: why wa in 10035
i can't resolve the problem in this code. plz anyone help viewing my error and what should i do to resolve.
- Sun Jun 24, 2012 10:49 am
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101941
why wa in 10035
// Primary arithmatic wa
#pragma warning (disable: 4786)
#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
long int x,y;
while(cin>>x>>y)
{
if(x==0&& y==0)break;
int carry=0,sum=0;
bool flag=false;
while(x%10||y%10) // suppose ...
#pragma warning (disable: 4786)
#include<stdio.h>
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
long int x,y;
while(cin>>x>>y)
{
if(x==0&& y==0)break;
int carry=0,sum=0;
bool flag=false;
while(x%10||y%10) // suppose ...