Search found 4 matches

by safait
Wed Jun 19, 2013 9:05 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30803

488 WA

what is the in my code: #include<stdio.h> int main() { int a,f,i,j,x,t; scanf("%d",&t); i=t-1; while(t-->0) { scanf("%d%d",&a,&f); if(t<i) printf("\n"); for(i=0;i<f;i++){ for(j=1;j<=a;j++){ for(x=0;x<j;x++) printf("%d",j); printf("\n"); } j-=2; for(;j>=1;j--){ for(x=0;x<j;x++) printf("%d",j); printf...
by safait
Mon Jun 10, 2013 1:34 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20283

Re: why i am getting wrong answer for 10338 no problem

http://acm.uva.es/board/viewtopic.php?f=20&t=1353 Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread. i am not getting perfect answer . if u see my code carefully then u find my code ...
by safait
Mon Jun 10, 2013 1:21 pm
Forum: Volume 103 (10300-10399)
Topic: 10354 - Avoiding Your Boss
Replies: 47
Views: 21455

what is output? for 10354 no problem

i need some input and output for testing my code. problem no is 10354. and there are some input . i also need output of these input: 12 17 6 11 12 9 1 2 1 2 3 1 3 4 1 1 5 1 2 6 1 3 7 1 4 8 1 5 6 1 6 7 1 7 8 1 5 9 1 6 10 1 7 11 1 8 12 1 9 10 1 10 11 1 11 12 1 3 3 1 2 3 3 1 2 2 1 3 1 3 2 1 6 6 2 5 3 3...
by safait
Sat Jun 08, 2013 12:17 pm
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 20283

why i am getting wrong answer for 10338 no problem

here is my code: #include<stdio.h> unsigned long long int binnas(int i) { unsigned long long int n=1; for(;i>1;) n*=i--; return n; } int main() { unsigned long long int n,r; int i,j,x,count,in,in1; char arr[21]; in1=1; scanf("%d",&in); getchar(); while(in1++<=in){ for(i=0;arr[i-1]!='\n';i++) arr[i]=...

Go to advanced search