I have wrong answer.Who can help me.
my code is here in C
#include<stdio.h>
#include<string.h>
int last_digit(int m,int n,int num [9]);
void main()
{
char *s;
unsigned long l;
int b,last,i,c;
int odd[9] = { 1,4,7,6,5,6,3,6,9 };
int even[9] = { 1,6,3,6,5,6,7,4,9 };
freopen("last_dgt.in ...
Search found 3 matches
- Sun Feb 16, 2003 2:29 am
- Forum: Volume 101 (10100-10199)
- Topic: 10162 - Last Digit
- Replies: 21
- Views: 10934
- Sun Feb 16, 2003 2:26 am
- Forum: Volume 6 (600-699)
- Topic: 642 - Word Amalgamation
- Replies: 9
- Views: 8095
642 - Word Amalgamation
I keep getting WA, but I think I have the right concept, can someone give me some input/output?
here is my code in C.pls some1 chk
/* @BEGIN_OF_SOURCE_CODE */
/* @JUDGE_ID: 25021WT 642 C */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int sort (char * , char * );
void main ...
here is my code in C.pls some1 chk
/* @BEGIN_OF_SOURCE_CODE */
/* @JUDGE_ID: 25021WT 642 C */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int sort (char * , char * );
void main ...
- Sat Jan 18, 2003 11:47 am
- Forum: Volume 7 (700-799)
- Topic: 711 - Dividing up
- Replies: 25
- Views: 14603
711
Is ther anykind person who can overview my solution and then find my faults.??
here i give my code in C:
/* @BEGIN_OF_SOURCE_CODE */
#include<stdio.h>
void main()
{
int a[6],b[6],sum,i,j,k,l,c[6],r,s,p,d;
long nCr;
p=0;
while(1)
{
sum=0;
r=0;
for(i=0;i<6;i++)
{
scanf("%d",&a ...
here i give my code in C:
/* @BEGIN_OF_SOURCE_CODE */
#include<stdio.h>
void main()
{
int a[6],b[6],sum,i,j,k,l,c[6],r,s,p,d;
long nCr;
p=0;
while(1)
{
sum=0;
r=0;
for(i=0;i<6;i++)
{
scanf("%d",&a ...