Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

Infinite_S's blog

By Infinite_S, history, 7 weeks ago, In English,

There is a long queue more then 1hour 30 minutes in codeforces status.Please fixed it.

Read more »

 
 
 
 
  • Vote: I like it  
  • +15
  • Vote: I do not like it  

By Infinite_S, history, 5 months ago, In English,
bitset < n > b1, b2;
b1 |= b2;

Is the complexity of above code O(n)? Or it works in O(1).

Read more »

 
 
 
 
  • Vote: I like it  
  • -10
  • Vote: I do not like it  

By Infinite_S, history, 8 months ago, In English,

My code getting TLE in sgu 112 problem. I am new to java programming so I am not understanding why my code is getting TLE. I also have submitted 3 code from github for this problem. They also got TLE. Now what should I do? Question link : http://codeforces.com/problemsets/acmsguru/problem/99999/112

My code :

//In the name of ALLAH

//package OverRiding;

import java.math.BigInteger;
import java.util.Scanner;

public class Example1 {

    public static void main(String[]args) {


        Scanner cin = new Scanner( System.in );

        BigInteger bigA = cin.nextBigInteger();
        BigInteger bigB = cin.nextBigInteger();
        BigInteger aPowb, bPowa;
        aPowb = bigA.pow ( bigB.intValue() );
        bPowa = bigB.pow ( bigA.intValue() );

        BigInteger ans = aPowb.subtract ( bPowa );
        System.out.println(ans);


    }
}

Read more »

 
 
 
 

By Infinite_S, history, 8 months ago, In English,

a2oj.com is not working. It's showing error. Can anyone tell me why?

Read more »

 
 
 
 
  • Vote: I like it  
  • +5
  • Vote: I do not like it  

By Infinite_S, history, 11 months ago, In English,

Please give me some tutorial on dp where basic to advance topic has discussed with problem link.Problems will be more welcomed then theory.

Thanks in advance:)

Read more »

 
 
 
 
  • Vote: I like it  
  • -2
  • Vote: I do not like it  

By Infinite_S, history, 13 months ago, In English,

I have solved 269 problems in codeforeces and 82 problems in light oj.But still I am Newbie.My rating in code chef is 1454 (attended 5 contest).But codeforece rating is getting down day by day.What should I do now?How to choose questions to improve my coding skill + rating?

Thanks in advance.

Read more »

 
 
 
 
  • Vote: I like it  
  • +9
  • Vote: I do not like it  

By Infinite_S, history, 13 months ago, In English,

Topic : Bit mask.

Why getting wa in this test cases :

2

16 12

F853AD64B1EC7290

16 18

8192BEFA70CD3564

Correct Output :

Case 1: 5230697472000

Case 2: 3486618432000

My output :

Case 1: 2324797191360

Case 2: 1226335446000

Question : http://lightoj.com/volume_showproblem.php?problem=1021

My code: https://ideone.com/2XjGaV

Read more »

 
 
 
 
  • Vote: I like it  
  • -18
  • Vote: I do not like it  

By Infinite_S, history, 13 months ago, In English,

Topic : LCS My code is getting TLE for this test case: 1 weuwmwxxeajlsalokh dmnmklyoltvdpjzbkqe

How to solve this problem?

Question: http://lightoj.com/volume_showproblem.php?problem=1110

My code: https://ideone.com/WrNYdg

Read more »

 
 
 
 
  • Vote: I like it  
  • -8
  • Vote: I do not like it  

By Infinite_S, history, 14 months ago, In English,

What is upsolving realy means? Is it means solving all problem of that contest that I havn't solved.Or it means solving those problems that I can solve but didn't solved in the contest.

Read more »

 
 
 
 
  • Vote: I like it  
  • +3
  • Vote: I do not like it  

By Infinite_S, history, 14 months ago, In English,

Is A2 oj really helpful to improve my rating in codeforces ? And when practicing in codeforces how to choose difficulty level of question as a newbie or pupil ? Note : I can solve div-2 A easily but div-2 B is hard to me and I can't solve div-2 C with out reading editorial (But I have to spend huge time to understand the editorial of C ). Thanks in advance. : )

Read more »

 
 
 
 
  • Vote: I like it  
  • +4
  • Vote: I do not like it  

By Infinite_S, history, 14 months ago, In English,

How much time I should spend to solve a problem before reading the editorial.Please give me a perfect advice so that I can save myself from wasting time.

Read more »

 
 
 
 
  • Vote: I like it  
  • +4
  • Vote: I do not like it  

By Infinite_S, history, 14 months ago, In English,

If I don't understand the tutorial, is it wise to see some red coder's code or the code given in tutorial to under stand the tutorial perfectly.

Some time codes seems to me more easier to understand than tutorials. Please help. :)

Read more »

 
 
 
 
  • Vote: I like it  
  • -11
  • Vote: I do not like it