Problem: p02690
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

def main():
    x = int(input())
    kouhodic = dict()
    for i in range(200):
        kouhodic[i ** 5] = i
        kouhodic[-i ** 5] = -i
    
    kouhodic = sorted(kouhodic.items())
    kazu = len(kouhodic)
    print(kouhodic)

    for i in range(kazu):
        for j in range(i+1, kazu):
            if kouhodic[j][0] - kouhodic[i][0] == x:
                print(kouhodic[j][1], kouhodic[i][1])
                exit()
    
    
    




if __name__ == "__main__":
    main()

Failing test case input:
244

Expected output:
1 -3


Actual output:
[(-312079600999, -199), (-304316815968, -198), (-296709280757, -197), (-289254654976, -196), (-281950621875, -195), (-274794888224, -194), (-267785184193, -193), (-260919263232, -192), (-254194901951, -191), (-247609900000, -190), (-241162079949, -189), (-234849287168, -188), (-228669389707, -187), (-222620278176, -186), (-216699865625, -185), (-210906087424, -184), (-205236901143, -183), (-199690286432, -182), (-194264244901, -181), (-188956800000, -180), (-183765996899, -179), (-178689902368, -178), (-173726604657, -177), (-168874213376, -176), (-164130859375, -175), (-159494694624, -174), (-154963892093, -173), (-150536645632, -172), (-146211169851, -171), (-141985700000, -170), (-137858491849, -169), (-133827821568, -168), (-129891985607, -167), (-126049300576, -166), (-122298103125, -165), (-118636749824, -164), (-115063617043, -163), (-111577100832, -162), (-108175616801, -161), (-104857600000, -160), (-101621504799, -159), (-98465804768, -158), (-95388992557, -157), (-92389579776, -156), (-89466096875, -155), (-86617093024, -154), (-83841135993, -153), (-81136812032, -152), (-78502725751, -151), (-75937500000, -150), (-73439775749, -149), (-71008211968, -148), (-68641485507, -147), (-66338290976, -146), (-64097340625, -145), (-61917364224, -144), (-59797108943, -143), (-57735339232, -142), (-55730836701, -141), (-53782400000, -140), (-51888844699, -139), (-50049003168, -138), (-48261724457, -137), (-46525874176, -136), (-44840334375, -135), (-43204003424, -134), (-41615795893, -133), (-40074642432, -132), (-38579489651, -131), (-37129300000, -130), (-35723051649, -129), (-34359738368, -128), (-33038369407, -127), (-31757969376, -126), (-30517578125, -125), (-29316250624, -124), (-28153056843, -123), (-27027081632, -122), (-25937424601, -121), (-24883200000, -120), (-23863536599, -119), (-22877577568, -118), (-21924480357, -117), (-21003416576, -116), (-20113571875, -115), (-19254145824, -114), (-18424351793, -113), (-17623416832, -112), (-16850581551, -111), (-16105100000, -110), (-15386239549, -109), (-14693280768, -108), (-14025517307, -107), (-13382255776, -106), (-12762815625, -105), (-12166529024, -104), (-11592740743, -103), (-11040808032, -102), (-10510100501, -101), (-10000000000, -100), (-9509900499, -99), (-9039207968, -98), (-8587340257, -97), (-8153726976, -96), (-7737809375, -95), (-7339040224, -94), (-6956883693, -93), (-6590815232, -92), (-6240321451, -91), (-5904900000, -90), (-5584059449, -89), (-5277319168, -88), (-4984209207, -87), (-4704270176, -86), (-4437053125, -85), (-4182119424, -84), (-3939040643, -83), (-3707398432, -82), (-3486784401, -81), (-3276800000, -80), (-3077056399, -79), (-2887174368, -78), (-2706784157, -77), (-2535525376, -76), (-2373046875, -75), (-2219006624, -74), (-2073071593, -73), (-1934917632, -72), (-1804229351, -71), (-1680700000, -70), (-1564031349, -69), (-1453933568, -68), (-1350125107, -67), (-1252332576, -66), (-1160290625, -65), (-1073741824, -64), (-992436543, -63), (-916132832, -62), (-844596301, -61), (-777600000, -60), (-714924299, -59), (-656356768, -58), (-601692057, -57), (-550731776, -56), (-503284375, -55), (-459165024, -54), (-418195493, -53), (-380204032, -52), (-345025251, -51), (-312500000, -50), (-282475249, -49), (-254803968, -48), (-229345007, -47), (-205962976, -46), (-184528125, -45), (-164916224, -44), (-147008443, -43), (-130691232, -42), (-115856201, -41), (-102400000, -40), (-90224199, -39), (-79235168, -38), (-69343957, -37), (-60466176, -36), (-52521875, -35), (-45435424, -34), (-39135393, -33), (-33554432, -32), (-28629151, -31), (-24300000, -30), (-20511149, -29), (-17210368, -28), (-14348907, -27), (-11881376, -26), (-9765625, -25), (-7962624, -24), (-6436343, -23), (-5153632, -22), (-4084101, -21), (-3200000, -20), (-2476099, -19), (-1889568, -18), (-1419857, -17), (-1048576, -16), (-759375, -15), (-537824, -14), (-371293, -13), (-248832, -12), (-161051, -11), (-100000, -10), (-59049, -9), (-32768, -8), (-16807, -7), (-7776, -6), (-3125, -5), (-1024, -4), (-243, -3), (-32, -2), (-1, -1), (0, 0), (1, 1), (32, 2), (243, 3), (1024, 4), (3125, 5), (7776, 6), (16807, 7), (32768, 8), (59049, 9), (100000, 10), (161051, 11), (248832, 12), (371293, 13), (537824, 14), (759375, 15), (1048576, 16), (1419857, 17), (1889568, 18), (2476099, 19), (3200000, 20), (4084101, 21), (5153632, 22), (6436343, 23), (7962624, 24), (9765625, 25), (11881376, 26), (14348907, 27), (17210368, 28), (20511149, 29), (24300000, 30), (28629151, 31), (33554432, 32), (39135393, 33), (45435424, 34), (52521875, 35), (60466176, 36), (69343957, 37), (79235168, 38), (90224199, 39), (102400000, 40), (115856201, 41), (130691232, 42), (147008443, 43), (164916224, 44), (184528125, 45), (205962976, 46), (229345007, 47), (254803968, 48), (282475249, 49), (312500000, 50), (345025251, 51), (380204032, 52), (418195493, 53), (459165024, 54), (503284375, 55), (550731776, 56), (601692057, 57), (656356768, 58), (714924299, 59), (777600000, 60), (844596301, 61), (916132832, 62), (992436543, 63), (1073741824, 64), (1160290625, 65), (1252332576, 66), (1350125107, 67), (1453933568, 68), (1564031349, 69), (1680700000, 70), (1804229351, 71), (1934917632, 72), (2073071593, 73), (2219006624, 74), (2373046875, 75), (2535525376, 76), (2706784157, 77), (2887174368, 78), (3077056399, 79), (3276800000, 80), (3486784401, 81), (3707398432, 82), (3939040643, 83), (4182119424, 84), (4437053125, 85), (4704270176, 86), (4984209207, 87), (5277319168, 88), (5584059449, 89), (5904900000, 90), (6240321451, 91), (6590815232, 92), (6956883693, 93), (7339040224, 94), (7737809375, 95), (8153726976, 96), (8587340257, 97), (9039207968, 98), (9509900499, 99), (10000000000, 100), (10510100501, 101), (11040808032, 102), (11592740743, 103), (12166529024, 104), (12762815625, 105), (13382255776, 106), (14025517307, 107), (14693280768, 108), (15386239549, 109), (16105100000, 110), (16850581551, 111), (17623416832, 112), (18424351793, 113), (19254145824, 114), (20113571875, 115), (21003416576, 116), (21924480357, 117), (22877577568, 118), (23863536599, 119), (24883200000, 120), (25937424601, 121), (27027081632, 122), (28153056843, 123), (29316250624, 124), (30517578125, 125), (31757969376, 126), (33038369407, 127), (34359738368, 128), (35723051649, 129), (37129300000, 130), (38579489651, 131), (40074642432, 132), (41615795893, 133), (43204003424, 134), (44840334375, 135), (46525874176, 136), (48261724457, 137), (50049003168, 138), (51888844699, 139), (53782400000, 140), (55730836701, 141), (57735339232, 142), (59797108943, 143), (61917364224, 144), (64097340625, 145), (66338290976, 146), (68641485507, 147), (71008211968, 148), (73439775749, 149), (75937500000, 150), (78502725751, 151), (81136812032, 152), (83841135993, 153), (86617093024, 154), (89466096875, 155), (92389579776, 156), (95388992557, 157), (98465804768, 158), (101621504799, 159), (104857600000, 160), (108175616801, 161), (111577100832, 162), (115063617043, 163), (118636749824, 164), (122298103125, 165), (126049300576, 166), (129891985607, 167), (133827821568, 168), (137858491849, 169), (141985700000, 170), (146211169851, 171), (150536645632, 172), (154963892093, 173), (159494694624, 174), (164130859375, 175), (168874213376, 176), (173726604657, 177), (178689902368, 178), (183765996899, 179), (188956800000, 180), (194264244901, 181), (199690286432, 182), (205236901143, 183), (210906087424, 184), (216699865625, 185), (222620278176, 186), (228669389707, 187), (234849287168, 188), (241162079949, 189), (247609900000, 190), (254194901951, 191), (260919263232, 192), (267785184193, 193), (274794888224, 194), (281950621875, 195), (289254654976, 196), (296709280757, 197), (304316815968, 198), (312079600999, 199)]
1 -3


Fixed submission (verdict: Accepted):

def main():
    x = int(input())
    kouhodic = dict()
    for i in range(200):
        kouhodic[i ** 5] = i
        kouhodic[-i ** 5] = -i
    
    kouhodic = sorted(kouhodic.items())
    kazu = len(kouhodic)
    

    for i in range(kazu):
        for j in range(i+1, kazu):
            if kouhodic[j][0] - kouhodic[i][0] == x:
                print(kouhodic[j][1], kouhodic[i][1])
                exit()
    
    
    




if __name__ == "__main__":
    main()