I have checked with all available inputs,but still getting WA.Please help me out,what is wrong with my code? #ifndef HEADER_H
#define HEADER_H
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<vector>
#include<queue>
#include<string>
#include<string.h ...
Search found 6 matches
- Tue Dec 15, 2015 10:00 am
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 42022
- Wed Aug 05, 2015 4:17 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47372
Re: 755 - 487--3279
Getting TLE for this code
.Can someone plz tell me what am i doning wrong?
code->https://ideone.com/mxjlMN

code->https://ideone.com/mxjlMN
- Mon Aug 03, 2015 9:27 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10050 - Hartals
- Replies: 59
- Views: 29761
Re: uva 10050 -hartals Why i am getting RE in this code?
memberlist.php?mode=viewprofile&u=99347 thanks a lot man.I have been eagerly waiting for any kind help regarding this.
Finally,got AC.
Finally,got AC.
- Sat Aug 01, 2015 5:13 am
- Forum: Volume 100 (10000-10099)
- Topic: 10050 - Hartals
- Replies: 59
- Views: 29761
uva 10050 -hartals Why i am getting RE in this code?
i got AC using same logic in C++.But using java i am getting RE.Please help me out :(
//package pkg10050.hartals;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
class Hartals {
public static void main(String[] args) throws FileNotFoundException ...
//package pkg10050.hartals;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
class Hartals {
public static void main(String[] args) throws FileNotFoundException ...
- Fri Jul 31, 2015 2:22 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10050 - Hartals
- Replies: 59
- Views: 29761
uva 10050 -hartals Why i am getting RE in this code?
i have tested with the sample inputs and it works fine.But uva is giving RE :(..please someone help me out.
package pkg10050.hartals;
import java.util.Arrays;
import java.util.Scanner;
class Hartals {
public static void main(String[] args) {
new Hartals().run();
}
void run() {
Scanner in ...
package pkg10050.hartals;
import java.util.Arrays;
import java.util.Scanner;
class Hartals {
public static void main(String[] args) {
new Hartals().run();
}
void run() {
Scanner in ...
- Sat Jun 07, 2014 12:18 am
- Forum: Volume 100 (10000-10099)
- Topic: 10000 - Longest Paths
- Replies: 160
- Views: 56480
why runtime error is occuring for my code..uva-10000
#include<stdio.h>
typedef struct listing{
int length,finishing_point,index;
};
int main()
{int cases[100][3];
int start,total_node,n;
n=0;
do{
scanf("%d",&total_node);
if(total_node==0)break;
scanf("%d",&start);
int a[100][total_node];
int p,q,i;
i=0;
do
{scanf("%d %d",&p,&q);
a[i][0]=p;
a[i][1 ...
typedef struct listing{
int length,finishing_point,index;
};
int main()
{int cases[100][3];
int start,total_node,n;
n=0;
do{
scanf("%d",&total_node);
if(total_node==0)break;
scanf("%d",&start);
int a[100][total_node];
int p,q,i;
i=0;
do
{scanf("%d %d",&p,&q);
a[i][0]=p;
a[i][1 ...