Runtime Error CUP TIME is 0.002
can somebody tell me where is the problem
really thanks
#include <iostream>
using namespace std;
#include <fstream>
#include <string>
#include <cmath>
//#include <iomanip>
//#include <vector>
//#include <list>
//#include <set> // multiset class-template ...
Search found 38 matches
- Mon Sep 18, 2006 1:30 am
- Forum: Volume 100 (10000-10099)
- Topic: 10018 - Reverse and Add
- Replies: 169
- Views: 43881
- Sun Apr 03, 2005 4:35 pm
- Forum: Volume 6 (600-699)
- Topic: 674 - Coin Change
- Replies: 77
- Views: 39030
- Sun Apr 03, 2005 2:56 am
- Forum: Volume 6 (600-699)
- Topic: 674 - Coin Change
- Replies: 77
- Views: 39030
- Sun Apr 03, 2005 2:54 am
- Forum: Volume 6 (600-699)
- Topic: 674 - Coin Change
- Replies: 77
- Views: 39030
- Sat Apr 02, 2005 11:52 am
- Forum: Volume 6 (600-699)
- Topic: 674 - Coin Change
- Replies: 77
- Views: 39030
Re: About CLRS
Greedy is in ch16Raj Ariyan wrote: Try to read this book when u will free. It will help you much. Greedy most probably in chapter 16.
do i use Greedy to slove this?
to sohel:
my code is not AC is TLE^^
- Mon Mar 21, 2005 6:24 am
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 51731
..
..
- Mon Mar 21, 2005 6:01 am
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 51731
- Mon Mar 21, 2005 5:57 am
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 51731
108 Maximum Sum
http://acm.uva.es/p/v1/108.html
help WA
#include <iostream>
using namespace std;
void output(int a[][101],int b[][101],int n)
{
int i,j;
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
{
printf("%3d",a[i][j]);
}
printf("\n");
}
printf("=========\n");
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j ...
help WA
#include <iostream>
using namespace std;
void output(int a[][101],int b[][101],int n)
{
int i,j;
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j++)
{
printf("%3d",a[i][j]);
}
printf("\n");
}
printf("=========\n");
for(i=1;i<=n;i++)
{
for(j=1;j<=n;j ...
- Sat Mar 19, 2005 3:54 pm
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 37044
- Sat Mar 19, 2005 11:38 am
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 37044
Re: 111 Invalid memory reference
(no debugging symbols found)...(gdb) run
Starting program: /win.exe
Program received signal SIGSEGV, Segmentation fault.
0x004012ce in ?? ()
(gdb) where
#0 0x004012ce in ?? ()
#1 0x00401537 in ?? ()
#2 0x004011c1 in ?? ()
#3 0x004011eb in ?? ()
#4 0x7c816d4f in ?? ()
(gdb) print
The history is ...
- Sat Mar 19, 2005 10:13 am
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 37044
- Sat Mar 19, 2005 9:20 am
- Forum: Volume 1 (100-199)
- Topic: 111 - History Grading
- Replies: 135
- Views: 37044
111 Invalid memory reference
if use VC++ no error
use g++ ===>run time error
if input
10
3 1 2 4 9 5 10 6 8 7
1 2 3 4 5 6 7 8 9 10
4 7 2 3 10 6 9 1 5 8
3 1 2 4 9 5 10 6 8 7
2 10 1 3 8 4 9 5 7 6<===watch this
output
6
5
10
===>Run time error
if input
10
3 1 2 4 9 5 10 6 8 7
2 10 1 3 8 4 9 5 7 6<===watch this
output ...
- Mon Mar 14, 2005 6:14 am
- Forum: Volume 6 (600-699)
- Topic: 674 - Coin Change
- Replies: 77
- Views: 39030
Re: oh! no
not ACsohel wrote:Please, don't post AC codes on this forum..
-- it won't help anyone in the long run.
is TLE
help me
- Mon Mar 14, 2005 6:13 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116656
- Sat Mar 12, 2005 6:29 pm
- Forum: Volume 1 (100-199)
- Topic: 108 - Maximum Sum
- Replies: 233
- Views: 51731