Please help me. I got time limit. :evil:
import java.util.Scanner;
public class Main {
private static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
int n, m;
short temp, carry = 0;
char ch;
short[] firstAra = new short[1000005];
short ...
Search found 10 matches
- Fri Oct 17, 2014 8:01 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67702
- Sat Sep 27, 2014 10:17 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96696
Re: 10200 - Prime Time
Can someone answer me why we add 1e-9


Code: Select all
printf("%.2lf\n",(count*100.00/(b - a + 1)) + 1e-9 );
- Sat Sep 27, 2014 9:13 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96696
Re: 10200 - Prime Time
Please tell me the reason i got Time Limit .. please help
give me some input for this :
give me some input for this :
Code: Select all
ACCEPTED
- Tue Sep 23, 2014 3:52 pm
- Forum: Volume 119 (11900-11999)
- Topic: 11909 - Soya Milk
- Replies: 15
- Views: 9743
- Tue Sep 23, 2014 3:34 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 73286
Re: 10252 - Common Permutation
Code: Select all
I also think as Mr. samg .
Mr. BUET may mistake.
My AC program returns this :
Code: Select all
aasgfndfdsndsbfngferdsfnshhgbshehbnbniavnnbroaegbwaibhubdskeienvbffnhrr
ufiuewgbvsusiuvnjakaslcvnirghbnvlodsjdvsbbfsoohbvrrbvdsdfsvdsundvssaamsmdn
Code: Select all
aaaabbbbbbdddddefffgghhiiiknnnnnorrrsssssssuvvw
- Tue Sep 23, 2014 12:44 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44469
- Mon Sep 22, 2014 5:50 pm
- Forum: Volume 4 (400-499)
- Topic: 444 - Encoder and Decoder
- Replies: 155
- Views: 44469
Re: 444 - Encoder and Decoder
Please someone help... :oops: :oops:
i cannot find for what input it is wrong ans. can u tell me.. the input and my wrong output... :evil: :evil:
#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main()
{
char message[1000];
int output[1000];
while(cin.getline ...
i cannot find for what input it is wrong ans. can u tell me.. the input and my wrong output... :evil: :evil:
#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main()
{
char message[1000];
int output[1000];
while(cin.getline ...
- Wed Sep 17, 2014 7:34 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10070 - Leap Year or Not Leap Year and ...
- Replies: 233
- Views: 83851
Re: 10070 - Leap Year or Not Leap Year and ...
please help me . i cannot find why wrong ans : :roll: :oops:
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
private static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
BigInteger number;
boolean check;
while ...
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
private static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
BigInteger number;
boolean check;
while ...
- Sat Sep 06, 2014 7:55 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11878 - Homework Checker
- Replies: 23
- Views: 23127
Re: 11878 - Homework Checker




- Sat Sep 06, 2014 4:12 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11878 - Homework Checker
- Replies: 23
- Views: 23127
Re: 11878 - Homework Checker
I cannot find why wrong and please help me... :oops:
#include<stdio.h>
#include<string.h>
int main()
{
char s[12],sign;
int count=0,ara[12],sum[3],test=0,i,m,j;
while(gets(s)){
sum[0]=0;sum[1]=0;sum[2]=0;j=0;
for(i=0;s[i]!='\0';i++){
if(s[i]=='?')
ara[i]=-88888;
else if(s[i]=='+'||s[i ...
#include<stdio.h>
#include<string.h>
int main()
{
char s[12],sign;
int count=0,ara[12],sum[3],test=0,i,m,j;
while(gets(s)){
sum[0]=0;sum[1]=0;sum[2]=0;j=0;
for(i=0;s[i]!='\0';i++){
if(s[i]=='?')
ara[i]=-88888;
else if(s[i]=='+'||s[i ...