WA on MULTQ3
@m_7 wrote: I am getting WA on 9th Test case. Can anyone see what’s wrong with this solution or suggest some sample test cases, please? ideone.com Ideone.com Ideone is something more than a pastebin;...
View ArticleWA on task
@aleksanderja wrote: Hi, can somebody give me a additional test case for this problem:https://www.spoj.com/problems/RDR2_1/ Posts: 2 Participants: 2 Read full topic
View ArticleWA on GCDPRDSM
@cegprakash wrote: (Removed after AC) Posts: 1 Participants: 1 Read full topic
View ArticleISLAND_ATTACK - Island Under Attack!-WA
@luckymastermin wrote: import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; class IslandUnderAttack { public...
View ArticleCPTTRN3 - Dumb C++ solution which should work?
@disk_handler69 wrote: #include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int T, l, c; cin>>T; while(T--){ cin>>l>>c ;...
View ArticleGao on a tree (GOT) - TLE
@gautham227 wrote: I am trying to solve the problem Gao on a tree (https://www.spoj.com/problems/GOT/) using Euler tour and segment tree. But Im getting TLE. can someone help me understand how I can...
View ArticleWhat's wrong in my code, in the problem Euclids algorithm revisited
@vimal142 wrote: https://www.spoj.com/problems/MAIN74 #include #include #define ll long long int mod = 1000000007; using namespace std; vector<vector> mult(vector<vector> &a,...
View ArticleRegarding Wrong Answer in FPOLICE question(SOLVED)
@upmadosa wrote: can someone help me why iam getting wrong answer in fpolice task fpolice Posts: 4 Participants: 3 Read full topic
View ArticleGod of Number Theory
@ivaziva wrote: I have been struggling for some time with this problem to find appropriate articles which will help me solve this problem. I have already found an article to find the solution but...
View ArticleWTPZ2001G/Diamonds - NZEC
@konikolaj wrote: Hello, I’m getting NZEC status for my solution to https://www.spoj.com/problems/WTPZ2001G/. May I ask for some hint or an example input that crashes my program? Submission ID:...
View ArticleHow to Tackle Difficult Problems on SPOJ?
@peterflores wrote: Hi Guys! I have been practicing on SPOJ for a few months now and I’ve noticed that I struggle significantly with the more difficult problems. While I can solve many of the easier...
View ArticleWhy my topo code not working!
@solirous wrote: Hey, I’m trying to learn toposort, It’s not working I tried to sumbit on this problem spoj.com SPOJ.com - Problem TOPOSORT ... and it just WA What I tried: I tried to visualize the...
View ArticleWhat is wrong in my code…. i’m continuously getting runtime error(SIGSEGV)COT...
@clzzw666 wrote: I did my best to solve this problem. I tried various methods, but I accepted the same problem on another Luogu, but this problem had a runtime error I come from China and my English...
View ArticleWhat am i Missing
@tic_tac wrote: I was solving the problem NICEDAY - The day of the competitors (i know its BIT / segment tree problem it was there in practice BIT) i just thought this approach I dont know what am i...
View ArticleWhat are allowed characters in task t9
@gaborek1987 wrote: Please tell me if the word on the left can have all digits and the sign ‘*’ and this word can be accepted? Which characters in the word are allowed? Posts: 1 Participants: 1 Read...
View ArticleGetting WA on the problem PIE continuously, what am I missing?
@raising_heaven wrote: spoj.com SPOJ.com - Problem PIE ... Please can anyone explain what is wrong with this code? Even providing a test case where this code fails would be appreciated. #include...
View ArticleGetting TLE in AKBAR - Akbar , The great. Why?
@sujalagrawal wrote: using namespace std; void fast() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } //---------------------------------------------------------------------...
View ArticleCOT - Count on a tree - TLE
@ivaziva wrote: Please help me optimize my code #pragma GCC optimize(“Ofast”) #pragma GCC optimize("-falign-functions") #pragma GCC optimize("-falign-jumps") #pragma GCC optimize("-falign-labels")...
View ArticleDCZPROST - wrong answer
@michalzelazko wrote: Is it possible to somehow see what tests exactly my code does not pass? I am pretty sure my solution is correct and when I check it on my own, the results are correct in all...
View ArticleHosting a competition on SPOJ
@s_guin wrote: Hi everyone. I want to host competitive programming contest for my college. I have sent a mail as specified in Hosting a contest FAQ. Can anyone in the thread tell me when can I expect...
View ArticlePALIN - wrong answer
@viper25 wrote: Is it possible to somehow see what tests exactly my code does not pass? I’m pretty sure this should be correct, and have tested on my own, in which case I don’t find any wrong results....
View ArticleNext Palindrome exception
@lazardukov wrote: Hello guys, I tried sometimes The next palindrome task but this is the error which was thrown everytime: Exception in thread “main” java.lang.NumberFormatException: null at...
View ArticleAIBOHPHOBIA - LPS vs Direct Approach
@viper25 wrote: I submitted both approaches. Using LPS, I get wrong answer but direct approach worls. I’m not able to figure out a test cases where they both would be different. Any ideas? both...
View ArticleBeangame
@simes wrote: Are there any masochists who fancy trying to figure out what is really required to get AC for a poorly specified problem? BEANGAME. I believe my solution prioritises the left lanes as...
View ArticleUsername Invalid problem
@akhilsaurabh wrote: I created my account on SPOJ today. I am not able to add my spoj username on any other interviews profiles as it shows invalid username. What should i do…please someone guide me...
View Article