Search found 6 matches
- Fri Jan 25, 2013 1:57 pm
- Forum: Volume 5 (500-599)
- Topic: 591 - Box of Bricks
- Replies: 80
- Views: 25509
Re: 591 Box of Bricks
Thank you! just deleted my codes.. Just got accepted!!
- Thu Jan 24, 2013 2:55 pm
- Forum: Volume 5 (500-599)
- Topic: 591 - Box of Bricks
- Replies: 80
- Views: 25509
591 Box of Bricks
Can anyone tell me why I got a Time Limit Exceeded?
- Mon Jun 25, 2012 3:43 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48706
Re: 490 - Rotating Sentences
Here's my full code:
#include <stdio.h>
int main(){
char input[100][100] = {'\0'};
int counter[100] = {0};
char ch;
int a = 0;
int b = 0;
int c = 0;
int h;
int i;
int j;
int k;
int temp;
int min = 0;
int Tmin = 0;
int nos = 0;
int high = 0;
while (scanf ("%c", &ch) != EOF ...
#include <stdio.h>
int main(){
char input[100][100] = {'\0'};
int counter[100] = {0};
char ch;
int a = 0;
int b = 0;
int c = 0;
int h;
int i;
int j;
int k;
int temp;
int min = 0;
int Tmin = 0;
int nos = 0;
int high = 0;
while (scanf ("%c", &ch) != EOF ...
- Fri Jun 22, 2012 11:55 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48706
Re: 490 - Rotating Sentences
For the sample input, you're printing null characters at the end of the last two lines.
hi! are you referring to the first sentence? since it has lesser characters it prints null characters. should it print a space? I edited my last code so it will print a space. so i added this code. but I still ...
hi! are you referring to the first sentence? since it has lesser characters it prints null characters. should it print a space? I edited my last code so it will print a space. so i added this code. but I still ...
- Thu Jun 14, 2012 4:38 am
- Forum: Volume 4 (400-499)
- Topic: 490 - Rotating Sentences
- Replies: 212
- Views: 48706
Re: 490 - Rotating Sentences
I'm having the same problem. I can't seem to see what's wrong with my output. Please help.
#include <stdio.h>
int main(){
char input[100][100] = {'\0'};
int counter[100] = {0};
char ch;
int a = 0;
int b = 0;
int c = 0;
int h;
int i;
int nos = 0;
int high = 0;
while (scanf ("%c ...
#include <stdio.h>
int main(){
char input[100][100] = {'\0'};
int counter[100] = {0};
char ch;
int a = 0;
int b = 0;
int c = 0;
int h;
int i;
int nos = 0;
int high = 0;
while (scanf ("%c ...
- Tue May 08, 2012 5:44 pm
- Forum: Volume 4 (400-499)
- Topic: 488 - Triangle Wave
- Replies: 270
- Views: 65204
488 Time Limit Exceeded
Hi! I always got TLE. Can anybody tell me what's making it slow? Here's my code:
#include <stdio.h>
int main() {
int amp;
int freq;
int Tamp;
int a;
int b;
int c;
int d = 1;
int e = 0;
int temp;
while (scanf("%d",&) != EOF) {
scanf("%d",&freq);
Tamp = (amp * 2) - 1;
for (a = freq ...
#include <stdio.h>
int main() {
int amp;
int freq;
int Tamp;
int a;
int b;
int c;
int d = 1;
int e = 0;
int temp;
while (scanf("%d",&) != EOF) {
scanf("%d",&freq);
Tamp = (amp * 2) - 1;
for (a = freq ...