## Search found 7 matches

Wed Nov 25, 2015 7:04 am
Forum: Volume 124 (12400-12499)
Topic: 12455 - Bars
Replies: 4
Views: 4447

### Re: 12455 - Bars

Getting WA Please Help :( /*Date: 25.11.15 Problem: 12455 Bars */ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> int compare(const void *a, const void *b){ return ( *(int*) a - *(int*) b); } int main() { int t, i, j, l, m; int num[22]; int x, c, n; scanf("%d", &t); while(t-...
Sat Aug 29, 2015 1:02 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 31829

### Re: 488 - Triangle Wave

Whats WRONG with this ? Getting WA /* Date: 29.08.15 Problem: Triangle Wave */ #include <stdio.h> #include <string.h> int main() { int i, j, f, a; int t, x; scanf("%d", &t); while(t--){ scanf("%d %d", &a, &f); for(x=1; x<=f; x++){ for(i=1; i<=a; i++){ for(j=0; j<i; j++){ printf("%d", i); } printf("\...
Tue Aug 25, 2015 10:14 am
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 9662

### Re: 11559 - Event Planning

Tue Aug 25, 2015 7:01 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 32393

### Re: 10340 - All in All

Accepted .

Code: Select all

``````Code Removed
``````
Sat Aug 22, 2015 4:06 pm
Forum: Volume 5 (500-599)
Topic: 583 - Prime Factors
Replies: 171
Views: 37518

### Re: 583 - Prime Factors

Getting TLE. Please help me. /* Date: 22.08.15 Program: Prime factors */ #include <stdio.h> #include <math.h> void primefact(long int n); int main(){ long int n ; h: scanf("%ld", &n); if(n==0) return 0; if(n>0){ printf("%ld = ", n); primefact(n); printf("\n"); } else { printf("%ld = -1 x ", n); n = ...
Sun Aug 16, 2015 7:27 am
Forum: Volume 106 (10600-10699)
Topic: 10696 - f91
Replies: 21
Views: 9997

### Re: 10696 - f91

I Submit my code, but doesn't show anything.
My submission code : 15942859
Fri Aug 07, 2015 1:33 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 20504

### TLE: 483 - Word Scramble

Getting PE, plese help ! but my code works fine for uDebug. /* Date: 07.08.15 Problem: Word Scramble */ #include<stdio.h> #include <string.h> int main() { int a=0,i,d,e, p=0; char c[1000], m[1000]; char z = '\0'; while(gets(c)){ for(i=0; i<=strlen(c); i++){ m[p] = c[i]; a++; p++; if(c[i]== 32 || c[i...