whats wrong..
to calculate:last digit of a^c (a can be upto 1000 digits and c upto 18 digits) plss.. point out the fallacy in the code....#include<iostream.h> #include<math.h> #include<string.h>...
View ArticleDivision of problems by difficulty level
When the editorials are published there are 5 kind of divisions for difficulty level : 1. Cakewalk 2. Simple 3. Easy 4. Medium 5. Hard However , when the problems move to practice section the first...
View ArticlePrizes for lunch time .
@admin : Are there any prizes for lunch time contest , in terms of cash or goodies . If so , please give the details for schools category and open category .
View ArticleFCTRL - TLE
Time limit getting exceeded and also the program not seeming to work for N>=60 in FCTRL question in easy practice problems section. What is wrong with my code?I ran it on gdb and found that as your...
View ArticleWhat field in computer science is a nice balance of mathematics and programming?
I am still a student and still deciding what to do in life. I am certain that I will go into computer science, but I am not sure what specific field (i.e cryptography, AI, theory, software...
View ArticleTLG - Wrong Answer
import java.io.BufferedReader; import java.io.InputStreamReader; public class test { public static void main(String[] args) throws Exception { int lines; BufferedReader br = new BufferedReader(new...
View ArticleALETHIO - Editorial
Problem Link:PracticeContestDifficulty:EasyPre-requisites:ad-hocProblem:You are given a string of digits 0-9, and uppercase letters 'A'-'Z'. Given that you are allowed to modify atmost one letter to...
View ArticleTYTACTIC - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:dfs, range sum queriesProblem:You are given a rooted tree T, associate with each vertex v a weight skill[v]. Also given are a set of queries...
View ArticleLinked list problem
I want to reverse every three values of my linked list but it it gives me a SIGSEGV error.Can someone tell me what is wrong with the code? Thanks in advance. (eg. for input :...
View ArticlePaying up:explaination
Take in the value of 'n' and the required value of sum 'm'Take in all the values for the banknotes in array 'd[]'For i = 1 and i < (2^n)sum = 0For j = 0 and j < nif jth bit of i is setsum = sum +...
View ArticlePRIME GENERATOR(PRIME1) NZEC. please help
I have used the Sieve of Eratosthenes to sole this problem but i don't know how to handle the large numbers(1*10^9).It works fine for lower values but for larger ones, such as: 1 99990011 1000000000 I...
View ArticleNZEC error python 3
I was solving ALETHIO problem using python 3 but it continuously gave me NZEC error. Tried try-finally statement, removing any whitespace in the input; but nothing worked. Please help me....
View Articlejava vs other
why is the running time of java so large compared to other languages,isn't there any way to reduce it other than making the algorithm efficient!!
View Articledecreasing runtime:paying up
import java.io.BufferedReader; import java.io.InputStreamReader; class test1 { public static void main(String[] args)throws Exception { BufferedReader br = new BufferedReader(new...
View Articlehi where to find the editorial for FCTRL. does it exist in the first place?
i didnt get the answer right ..but i couldnt find the editorial either. so could you guys pls tell me where i can find the editorial for this question and for other questions in the practice section as...
View ArticleWhy is the output not being displayed?
#include<stdio.h> #include<stdlib.h> int max(int a,int b) {return (a>b?a:b); } int main() {int i,n; scanf("%d",&n); int *a=(int *)malloc(n*sizeof(int)); int *m=(int...
View ArticleAMMEAT2 - Editorial
Problem Link:PracticeContestDifficulty:SIMPLEPre-requisites:Ad-hocProblem:Given integers N and K, pick K integers in 1...N, such that no two chosen integers are relatively prime.Explanation:Let us try...
View ArticleMinimum Value
Hello fellow codesters, I need a lil help from you guys I'd like to find the Minimum Value for every set of a constant number of values in an array !! like, i need to find the minimum for every 5...
View Articlehow to find the binary equivalent of a negative decimal number. for instance...
pls explain the procedure
View Articlegetting NZEC with JAVA plz help
Hello, I am getting NZEC in the Question Tywins Tactics.SubmissionPlease Help.
View Article