Please help me!
Can anyone give me some samples?
Here is my code.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int count(char input[],int base,int len){
int i=len-1,j=1;
int result;
result=(input[i]-'0');
if(input[i]-'0'>=base) return -1;
for(i=len-2;i>=0;i--){
if(input[i]-'0 ...
Search found 4 matches
- Sun Dec 11, 2005 10:01 am
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28334
- Fri Sep 30, 2005 1:22 am
- Forum: Other words
- Topic: how to submit my code?
- Replies: 6
- Views: 3663
I mean I did the online submission, but I got "Access Denied."
If my ID have not actived, I couldn't have any data, so I don't know what's the matter.
http://acm.uva.es/cgi-bin/OnlineJudge?UsersMgr:EditUser does not work.
What can I do?
If my ID have not actived, I couldn't have any data, so I don't know what's the matter.
http://acm.uva.es/cgi-bin/OnlineJudge?UsersMgr:EditUser does not work.
What can I do?
- Tue Sep 27, 2005 6:37 pm
- Forum: Other words
- Topic: how to submit my code?
- Replies: 6
- Views: 3663
- Tue Jun 28, 2005 5:40 am
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 18842
476 WA
I can't find the bugs. Please help me!
code:
#include<iostream>
using namespace std;
int main(){
char r;
int i=0,count=0;
double a,b,c,d;
double x[10][2]={0};
double y[10][2]={0};
while(cin>>r){
if(r=='*') break;
else{
cin>>a>>b>>c>>d;
x[i][1]=a;
x[i][2]=c;
y[i][1]=d;
y[i][2]=b;
i ...
code:
#include<iostream>
using namespace std;
int main(){
char r;
int i=0,count=0;
double a,b,c,d;
double x[10][2]={0};
double y[10][2]={0};
while(cin>>r){
if(r=='*') break;
else{
cin>>a>>b>>c>>d;
x[i][1]=a;
x[i][2]=c;
y[i][1]=d;
y[i][2]=b;
i ...