Блог пользователя schrodingerstom

Автор schrodingerstom, 7 часов назад, По-английски

2224A - Zhily and Array Operating

Tutorial
Implementation

2224B - Zhily and Mex and Max

Tutorial
Implementation

2224C - Zhily and Bracket Swapping

Tutorial
Implementation

2224D - Zhily and Barknights

Tutorial
Implementation

2223C - Zhily and Signpost

Tutorial
Implementation

2223D - Zhily and Cycle

Tutorial
Implementation

2223E - Zhily and Permutation

Tutorial
Implementation

2223F - Zhily and Colorful Strings

Tutorial
Implementation
  • Проголосовать: нравится
  • +24
  • Проголосовать: не нравится

»
4 часа назад, скрыть # |
 
Проголосовать: нравится +9 Проголосовать: не нравится

Sorry, the implementation might be unauthorized, we're solving it...

  • »
    »
    3 часа назад, скрыть # ^ |
     
    Проголосовать: нравится +5 Проголосовать: не нравится

    should be fixed now

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

https://mirror.codeforces.com/contest/2224/submission/373788886

The java implementation for 2224D solution 2 got TLE with Fenwick tree, but it passed with merge sort. Wondering why...

»
3 часа назад, скрыть # |
Rev. 2  
Проголосовать: нравится +7 Проголосовать: не нравится

The solution for Problem $$$\textbf{Div2}$$$ $$$C$$$ is not clear!!

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I created video editorial for D. Zhily and Barknights

»
3 часа назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone pls point out the mistake in this? (the function full of comments is taken from gfg)

»
72 минуты назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится
Specifically, we have Mv=lcm(Mu,du). Then m≡Ru (mod Mu) implies m≡kMu+Ru (mod Mv), k∈[0,gcd(Mu,du)−1]. By enumerating all k and computing the corresponding r, we can obtain the congruence equation for su,r. If some r is not obtained, then the congruence equation corresponding to su,r has no solution.

Should not $$$k$$$ range over $$$[0, \frac{d_u}{\gcd(M_u, d_u)} - 1] $$$ ?

EDIT: I got it. $$$k \in [0, \frac{d_u}{\gcd(M_u, d_u)} - 1]$$$ if the modulus is $$$d_u$$$

»
48 минут назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I'm new here. Can somebody tell me why the source in the implementation shows "N/A"? Is my viewing permission sufficient?

»
39 минут назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can someone please help me figure out why my submission resulted in rte for preblem C? i used a binary searching like technique on centroid

https://ideone.com/OYXng2