Search found 4 matches

by muctadir.dinar
Sun Jun 05, 2011 6:09 pm
Forum: Volume 6 (600-699)
Topic: 694 - The Collatz Sequence
Replies: 46
Views: 15747

Re: 694 - The Collatz Sequence

Can someone tell where is problem in my code...??? #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> using namespace std; int main() { // freopen("input.txt", "r", stdin); long long int a, limit; int caseCount = 0; while (scanf("%lld %lld", &a, &limit)!=EOF && a>-1 && limit...
by muctadir.dinar
Fri Apr 22, 2011 12:58 pm
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 31038

Re: 482 Permutation Arrays

getting wrong answer over and over again. can anyone tell me what is wrong with the code... #include <iostream> #include <stdlib.h> #include <stdio.h> #include <string.h> using namespace std; int main() { // freopen("input", "r+", stdin); int testCases; while (scanf("%d", &testCases)!=EOF) { getchar...
by muctadir.dinar
Tue Apr 19, 2011 10:30 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 66001

Re: 10189 - Minesweeper

getting wa with code below, #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; int main() { long int row, column; int fieldCount = 0; while (scanf("%ld %ld", &row, &column)!=EOF) { if (row == 0 && column == 0) { break; } char input[row+100][column+100]; getchar(); if (fi...
by muctadir.dinar
Sat Apr 16, 2011 10:08 pm
Forum: Volume 3 (300-399)
Topic: 353 - Pesky Palindromes
Replies: 43
Views: 11994

353 Pesky Palindromes

Getting a runtime error submitting the code below. I have no idea what is happening. Need help. #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; int TRUE = 1; int FALSE = 0; char palindromeCollection[500][80]; int count = 0; int prevoiuslyExists(cha...

Go to advanced search