{ "guild": { "id": "743031115207540836", "name": "Everyone's Programming Server", "iconUrl": "https://cdn.discordapp.com/icons/743031115207540836/1d4d00866818b8f61051002dd9f3167a.png?size=512" }, "channel": { "id": "1048653805237047366", "type": "GuildPublicThread", "categoryId": "1022562971743948963", "category": "help", "name": "Linear time in python!", "topic": null }, "dateRange": { "after": null, "before": null }, "exportedAt": "2025-02-26T20:34:04.071977-05:00", "messages": [ { "id": "1048653805237047366", "type": "Default", "timestamp": "2022-12-03T12:35:50.214-05:00", "timestampEdited": "2022-12-03T12:39:10.117-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "In terms of optimizing python code, can someone help me get my code to linear time? The run time has to be within 3 seconds but my code isn’t", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [ { "id": "1048654643707777094", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1048654643707777094/image.png?ex=67c0a33e&is=67bf51be&hm=b98bca80649cfd8cebe66800d041e79ed9d2e4afd0c3d7a46b09cf45cdde61fd&", "fileName": "image.png", "fileSizeBytes": 79199 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1048654682417008670", "type": "Default", "timestamp": "2022-12-03T12:39:19.35-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Heres my code!", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1048654754357719171", "type": "Default", "timestamp": "2022-12-03T12:39:36.502-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "```py\nimport time # import time module\nstart = time.time() # start time\narr = list(map(int, input().split(\" \")))\n\nst = time.time() # start time\ndiff = 10 ** 9\nfor i in range(len(arr) - 1):\n max_ele = min_ele = arr[i]\n for j in range(i + 1, len(arr)):\n max_ele = max(max_ele, arr[j])\n min_ele = min(min_ele, arr[j])\n if max_ele - min_ele <= diff:\n diff = max_ele - min_ele\n\nprint(diff)\n# end = time.time() # end time\n# execution_time = end - start # in seconds\n# print(execution_time) # print execution time```", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1048654795029893231", "type": "Default", "timestamp": "2022-12-03T12:39:46.199-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "@Help-Python", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049110477646610452", "type": "Default", "timestamp": "2022-12-04T18:50:29.401-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Alright, so for the sublist, there would be no scenario where you would want it to be bigger than 2, right?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049110879158927360", "type": "Default", "timestamp": "2022-12-04T18:52:05.129-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "and these two elements have to be next to each other, so unless I'm misunderstanding something, you just check the difference in value between the current value in loop, and next one, and find the smallest one", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049112387065761823", "type": "Default", "timestamp": "2022-12-04T18:58:04.642-05:00", "timestampEdited": "2022-12-04T19:04:38.043-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "```py\nimport time # import time module\n\narr = list(map(int, input().split(\" \")))\n\nstart = time.time() # start time\ndiff = 10 ** 9\n\nfor i in range(len(arr)):\n # if the current element is the last element\n if i+1 == len(arr):\n break\n # find difference between current element and next element\n temp_diff = arr[i]-arr[i+1]\n # absolute value the temp_diff\n if temp_diff < 0:\n temp_diff = -temp_diff\n if temp_diff < diff:\n diff = temp_diff\n\nprint(diff)\n#end = time.time() # end time\n#execution_time = end - start # in seconds\n#print(execution_time) # print execution time\n```\nthis seems too simple though, I feel like I'm missing something in the problem, especially since it mentions sublists, even though if I am understanding correctly, there is no point in having a sublist with more than 2 problems?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049113421464997958", "type": "Default", "timestamp": "2022-12-04T19:02:11.262-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "@Hz23 are there any sample input/outputs with the problem?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "inlineEmojis": [] }, { "id": "1049114279468597269", "type": "Default", "timestamp": "2022-12-04T19:05:35.826-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "also take note, in your code, the start time is before the input, so typing in the input counts as the time. the start time should instead be after the input", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049116801956597780", "type": "Reply", "timestamp": "2022-12-04T19:15:37.234-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Yes there is, sorry I will provide them right now", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049113421464997958", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049117287002685530", "type": "Reply", "timestamp": "2022-12-04T19:17:32.878-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [ { "id": "1049117286683902004", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1049117286683902004/image.png?ex=67c1009c&is=67bfaf1c&hm=cbf60759b5b19f3556784a76f76b5b7ee7170c63bfa0ef8efd46ab3c977e5403&", "fileName": "image.png", "fileSizeBytes": 42181 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049114279468597269", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049117491676315738", "type": "Reply", "timestamp": "2022-12-04T19:18:21.676-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "To see if it fits the time limit constraint, ig we could try inputting the max value here, 500000", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049112387065761823", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049118254397923438", "type": "Reply", "timestamp": "2022-12-04T19:21:23.523-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "oh ok, noted", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049114279468597269", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049118282629791765", "type": "Default", "timestamp": "2022-12-04T19:21:30.254-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "so its linear time then?", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049124021024866425", "type": "Default", "timestamp": "2022-12-04T19:44:18.394-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "@Prussia", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "inlineEmojis": [] }, { "id": "1049124673520148490", "type": "Default", "timestamp": "2022-12-04T19:46:53.961-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "working fine for me", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [ { "id": "1049124673234927656", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1049124673234927656/image.png?ex=67c1077d&is=67bfb5fd&hm=c28e9a70cf215b3b7d856ea2448ffd744ef40efb6be7ea87889765ec91bc2602&", "fileName": "image.png", "fileSizeBytes": 50964 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049124885345079427", "type": "Reply", "timestamp": "2022-12-04T19:47:44.464-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yours isn't, it has a nested loop, then min() and max() which are iirc also loops internally", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "reference": { "messageId": "1049118282629791765", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049124913581133885", "type": "Default", "timestamp": "2022-12-04T19:47:51.196-05:00", "timestampEdited": "2022-12-04T19:48:27.943-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "I think mine is linear time, and also works. go try it", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125015943118879", "type": "Default", "timestamp": "2022-12-04T19:48:15.601-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "I think your professor overcomplicated the problem. intentionally or not idk", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125115532681366", "type": "Default", "timestamp": "2022-12-04T19:48:39.345-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yours is more exponential ig?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125159761629204", "type": "Default", "timestamp": "2022-12-04T19:48:49.89-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yeah he probably did, does that alot lol\ncould we try the max constraint and see if it fits the 3 second time frame", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125221602435093", "type": "Default", "timestamp": "2022-12-04T19:49:04.634-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "mine is clearly quadratic, so wont work", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125236743884920", "type": "Default", "timestamp": "2022-12-04T19:49:08.244-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "we can try yours", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125248609550356", "type": "Default", "timestamp": "2022-12-04T19:49:11.073-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "since its linear", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125264216563762", "type": "Default", "timestamp": "2022-12-04T19:49:14.794-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "go ahead, you have the code", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125317433901146", "type": "Default", "timestamp": "2022-12-04T19:49:27.482-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "idk how to \uD83D\uDE2D", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [ { "id": "", "name": "\uD83D\uDE2D", "code": "sob", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f62d.svg" } ] }, { "id": "1049125376997216307", "type": "Default", "timestamp": "2022-12-04T19:49:41.683-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "you know how to run python, right?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125394483269692", "type": "Default", "timestamp": "2022-12-04T19:49:45.852-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "i thought it'd be as simple as inputting 500000 into the terminal", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125414393626687", "type": "Default", "timestamp": "2022-12-04T19:49:50.599-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yeah", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125451693563964", "type": "Default", "timestamp": "2022-12-04T19:49:59.492-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "ah you don't know what input to put in?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125487819100240", "type": "Default", "timestamp": "2022-12-04T19:50:08.105-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yeah", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125689372180480", "type": "Default", "timestamp": "2022-12-04T19:50:56.159-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "like for this i get that we'd do this here", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [ { "id": "1049125688973733959", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1049125688973733959/image.png?ex=67c10870&is=67bfb6f0&hm=53dfc16f1371f357cfbaab98778ecf2cb512199a23c92714fe35dfecbee7032e&", "fileName": "image.png", "fileSizeBytes": 16489 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125741637402654", "type": "Default", "timestamp": "2022-12-04T19:51:08.62-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "(i think it says 0.0 cause thats the seconds)", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125760528560167", "type": "Default", "timestamp": "2022-12-04T19:51:13.124-05:00", "timestampEdited": "2022-12-04T19:51:22.019-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "but yea , not too sure", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125933145145374", "type": "Default", "timestamp": "2022-12-04T19:51:54.279-05:00", "timestampEdited": "2022-12-04T19:52:05.737-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "```py\nimport time # import time module\n\narr = [1]*500000\n\nstart = time.time() # start time\ndiff = 10 ** 9\n\nfor i in range(len(arr)):\n # if the current element is the last element\n if i+1 == len(arr):\n break\n # find difference between current element and next element\n temp_diff = arr[i]-arr[i+1]\n # absolute value the temp_diff\n if temp_diff < 0:\n temp_diff = -temp_diff\n if temp_diff < diff:\n diff = temp_diff\n\nprint(diff)\nend = time.time() # end time\nexecution_time = end - start # in seconds\nprint(execution_time) # print execution time\n```\nrun this, this will go through a list with 500k elements", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049125994893688852", "type": "Default", "timestamp": "2022-12-04T19:52:09.001-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "oh ok", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126209746911263", "type": "Default", "timestamp": "2022-12-04T19:53:00.226-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "on my computer, done in 0.8 seconds, and gave correct output 0", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126218433306644", "type": "Default", "timestamp": "2022-12-04T19:53:02.297-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "should be good", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126329292947508", "type": "Default", "timestamp": "2022-12-04T19:53:28.728-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [ { "id": "1049126329129381978", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1049126329129381978/image.png?ex=67c10908&is=67bfb788&hm=1ddb45d75266e68ef7fb1ff16f7db5c2954089599681eb2ab3313cb703caa13f&", "fileName": "image.png", "fileSizeBytes": 39027 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126337132118076", "type": "Default", "timestamp": "2022-12-04T19:53:30.597-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yea", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126375723901051", "type": "Default", "timestamp": "2022-12-04T19:53:39.798-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "it works, thanks", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126410066862120", "type": "Default", "timestamp": "2022-12-04T19:53:47.986-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "is this a college course? make sure you understand the code, otherwise you dont really learn anything", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126481445519420", "type": "Default", "timestamp": "2022-12-04T19:54:05.004-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "high school unfortunately", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126520922325022", "type": "Default", "timestamp": "2022-12-04T19:54:14.416-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "ah ok gl lol", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126612802748497", "type": "Default", "timestamp": "2022-12-04T19:54:36.322-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "i made an alternative solution as well here, i (think?) its linear time (same problem)\n```py\nimport time\n\narr = list(map(int, input().split(\" \")))\n\nst = time.time()\ndiff = 10**9\nfor i in range(len(arr)-1):\n curr_diff = abs(arr[i] - arr[i+1])\n if curr_diff < diff:\n diff = curr_diff\n \nprint(diff) ```", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126680263925800", "type": "Default", "timestamp": "2022-12-04T19:54:52.406-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "works on the sample cases", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126740712243220", "type": "Reply", "timestamp": "2022-12-04T19:55:06.818-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "yup, seems like that would work also \\:)", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "\uD83D\uDC4D", "code": "thumbsup", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f44d.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "reference": { "messageId": "1049126612802748497", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049126773545242674", "type": "Default", "timestamp": "2022-12-04T19:55:14.646-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "ayyy les goo", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126827483996220", "type": "Default", "timestamp": "2022-12-04T19:55:27.506-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "test it though obviously", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049126864440000552", "type": "Default", "timestamp": "2022-12-04T19:55:36.317-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "I like the `len(arr)-1` part, its clever", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "\uD83D\uDE05", "code": "sweat_smile", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f605.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [], "inlineEmojis": [] }, { "id": "1049126982820048906", "type": "Reply", "timestamp": "2022-12-04T19:56:04.541-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "im trying to figure out how, i see you somehow ran the previous code through a list with 500k elements", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049126827483996220", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049127018249330740", "type": "Default", "timestamp": "2022-12-04T19:56:12.988-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "trying to figure out how id do that with this here", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049127115783671878", "type": "Default", "timestamp": "2022-12-04T19:56:36.242-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "```py\nimport time\n\narr = [1]*500000\n\nst = time.time()\ndiff = 10**9\nfor i in range(len(arr)-1):\n curr_diff = abs(arr[i] - arr[i+1])\n if curr_diff < diff:\n diff = curr_diff\n \nprint(diff) \n```", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "\uD83D\uDD25", "code": "fire", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f525.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [], "inlineEmojis": [] }, { "id": "1049127204824555600", "type": "Default", "timestamp": "2022-12-04T19:56:57.471-05:00", "timestampEdited": "2022-12-04T19:57:03.25-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "basically replaces the input with a list of 500k `1`s", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "\uD83D\uDE0E", "code": "sunglasses", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f60e.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [], "inlineEmojis": [] }, { "id": "1049127231751995423", "type": "Default", "timestamp": "2022-12-04T19:57:03.891-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "ohhhh", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049127263494484099", "type": "Default", "timestamp": "2022-12-04T19:57:11.459-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "that makes sense", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049127360278048838", "type": "Default", "timestamp": "2022-12-04T19:57:34.534-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "bro how long have you been coding in python, acc so cool", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049127712322756678", "type": "Default", "timestamp": "2022-12-04T19:58:58.468-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "4 years maybe? but I've mostly moved to js and rust so I don't use it too much", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "\uD83D\uDC4D", "code": "thumbsup", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f44d.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [], "inlineEmojis": [] }, { "id": "1049128064052895764", "type": "Reply", "timestamp": "2022-12-04T20:00:22.327-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "that kind of cool shorthand syntax you'll pick up with time. the more important skill is problem solving, which you show here, good job \\:)", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [ { "emoji": { "id": "", "name": "❤️", "code": "heart", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/2764.svg" }, "count": 1, "users": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ] } ], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "reference": { "messageId": "1049126612802748497", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049128646746570805", "type": "Reply", "timestamp": "2022-12-04T20:02:41.252-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "thanks \uD83D\uDE42", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049128064052895764", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [ { "id": "", "name": "\uD83D\uDE42", "code": "slight_smile", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f642.svg" } ] }, { "id": "1049320431376666635", "type": "Default", "timestamp": "2022-12-05T08:44:46.271-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "-giverep @Prussia 5", "author": { "id": "676414144643203120", "name": "hudsong0", "discriminator": "0000", "nickname": "Hudson", "color": "#D4AF37", "isBot": false, "roles": [ { "id": "743031297089339492", "name": "ADMIN", "color": "#D4AF37", "position": 93 }, { "id": "744557622262366309", "name": "Trusted", "color": "#11806A", "position": 90 }, { "id": "743482290180587614", "name": "Moderator", "color": "#E67E22", "position": 89 }, { "id": "802264469832597526", "name": "Trial moderator", "color": "#992D22", "position": 88 }, { "id": "1019197326495064136", "name": "FOOTED", "color": "#E8BEAC", "position": 83 }, { "id": "743481776676143205", "name": "Level 5", "color": "#3232E2", "position": 81 }, { "id": "746976140937396224", "name": "Helper", "color": "#6F0035", "position": 76 }, { "id": "805850008040898621", "name": "CodeCom Judge", "color": "#E74C3C", "position": 74 }, { "id": "848201437573152790", "name": "Highly Active", "color": "#A26D27", "position": 73 }, { "id": "809501289163391026", "name": "Honorary member", "color": "#3600FF", "position": 70 }, { "id": "821492358326517840", "name": "Server Bumper", "color": "#A6AEFF", "position": 69 }, { "id": "874858515838148608", "name": "Music", "color": "#2ECC71", "position": 66 }, { "id": "821123781279350784", "name": "Truth Seeker", "color": "#2ECC71", "position": 65 }, { "id": "743031248452321310", "name": "Language Maker", "color": "#2ECC71", "position": 64 }, { "id": "813448238433959947", "name": "Good Leader", "color": "#2ECC71", "position": 63 }, { "id": "821123981717274654", "name": "Bot Maker", "color": "#2ECC71", "position": 62 }, { "id": "800384434825986048", "name": "FullStack", "color": "#2ECC71", "position": 61 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "750234470379946004", "name": "Help-Aardvark", "color": null, "position": 59 }, { "id": "746976912181821511", "name": "Help-JS", "color": null, "position": 58 }, { "id": "746976986777255937", "name": "Help-C", "color": null, "position": 57 }, { "id": "824686275470032967", "name": "Help-C++", "color": null, "position": 55 }, { "id": "1069778726457450557", "name": "Help-HTML/CSS", "color": null, "position": 52 }, { "id": "854548376393089044", "name": "User-Made Challenge Ping", "color": null, "position": 51 }, { "id": "854547959445323806", "name": "Official Challenge Ping", "color": "#525252", "position": 50 }, { "id": "814614879045812324", "name": "Poll Ping", "color": null, "position": 49 }, { "id": "849178678701064203", "name": "pog a conversation starter", "color": "#E74C3C", "position": 48 }, { "id": "831902814950522900", "name": "Stream Ping", "color": null, "position": 47 }, { "id": "849032245279850506", "name": "Announcement Ping", "color": null, "position": 46 }, { "id": "744158968854741044", "name": "Project: Aardvark", "color": "#9B59B6", "position": 43 }, { "id": "813475475816710184", "name": "Project: Blossoming", "color": "#9B59B6", "position": 40 }, { "id": "808434733486571570", "name": "Project: CSISP", "color": "#9B59B6", "position": 36 }, { "id": "878363922099490846", "name": "Misc Access", "color": "#009BFF", "position": 14 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/676414144643203120/5f7841effaedd08165f6f7588c987c11.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "inlineEmojis": [] }, { "id": "1049320434228801606", "type": "Default", "timestamp": "2022-12-05T08:44:46.951-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Can't give that much (max 1)", "author": { "id": "204255221017214977", "name": "YAGPDB.xyz", "discriminator": "8760", "nickname": "Banner.xyz", "color": "#E91E63", "isBot": true, "roles": [ { "id": "814516079061762098", "name": "Role Bots", "color": null, "position": 86 }, { "id": "745163596568199269", "name": "BOTS", "color": "#E91E63", "position": 45 }, { "id": "808438816162578483", "name": "YAGPDB.xyz", "color": null, "position": 24 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/204255221017214977/a_f745fbd1c07799ac4ec443e988e2b766.gif?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049320475085512815", "type": "Default", "timestamp": "2022-12-05T08:44:56.692-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "-giverep @Prussia 1", "author": { "id": "676414144643203120", "name": "hudsong0", "discriminator": "0000", "nickname": "Hudson", "color": "#D4AF37", "isBot": false, "roles": [ { "id": "743031297089339492", "name": "ADMIN", "color": "#D4AF37", "position": 93 }, { "id": "744557622262366309", "name": "Trusted", "color": "#11806A", "position": 90 }, { "id": "743482290180587614", "name": "Moderator", "color": "#E67E22", "position": 89 }, { "id": "802264469832597526", "name": "Trial moderator", "color": "#992D22", "position": 88 }, { "id": "1019197326495064136", "name": "FOOTED", "color": "#E8BEAC", "position": 83 }, { "id": "743481776676143205", "name": "Level 5", "color": "#3232E2", "position": 81 }, { "id": "746976140937396224", "name": "Helper", "color": "#6F0035", "position": 76 }, { "id": "805850008040898621", "name": "CodeCom Judge", "color": "#E74C3C", "position": 74 }, { "id": "848201437573152790", "name": "Highly Active", "color": "#A26D27", "position": 73 }, { "id": "809501289163391026", "name": "Honorary member", "color": "#3600FF", "position": 70 }, { "id": "821492358326517840", "name": "Server Bumper", "color": "#A6AEFF", "position": 69 }, { "id": "874858515838148608", "name": "Music", "color": "#2ECC71", "position": 66 }, { "id": "821123781279350784", "name": "Truth Seeker", "color": "#2ECC71", "position": 65 }, { "id": "743031248452321310", "name": "Language Maker", "color": "#2ECC71", "position": 64 }, { "id": "813448238433959947", "name": "Good Leader", "color": "#2ECC71", "position": 63 }, { "id": "821123981717274654", "name": "Bot Maker", "color": "#2ECC71", "position": 62 }, { "id": "800384434825986048", "name": "FullStack", "color": "#2ECC71", "position": 61 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "750234470379946004", "name": "Help-Aardvark", "color": null, "position": 59 }, { "id": "746976912181821511", "name": "Help-JS", "color": null, "position": 58 }, { "id": "746976986777255937", "name": "Help-C", "color": null, "position": 57 }, { "id": "824686275470032967", "name": "Help-C++", "color": null, "position": 55 }, { "id": "1069778726457450557", "name": "Help-HTML/CSS", "color": null, "position": 52 }, { "id": "854548376393089044", "name": "User-Made Challenge Ping", "color": null, "position": 51 }, { "id": "854547959445323806", "name": "Official Challenge Ping", "color": "#525252", "position": 50 }, { "id": "814614879045812324", "name": "Poll Ping", "color": null, "position": 49 }, { "id": "849178678701064203", "name": "pog a conversation starter", "color": "#E74C3C", "position": 48 }, { "id": "831902814950522900", "name": "Stream Ping", "color": null, "position": 47 }, { "id": "849032245279850506", "name": "Announcement Ping", "color": null, "position": 46 }, { "id": "744158968854741044", "name": "Project: Aardvark", "color": "#9B59B6", "position": 43 }, { "id": "813475475816710184", "name": "Project: Blossoming", "color": "#9B59B6", "position": 40 }, { "id": "808434733486571570", "name": "Project: CSISP", "color": "#9B59B6", "position": 36 }, { "id": "878363922099490846", "name": "Misc Access", "color": "#009BFF", "position": 14 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/676414144643203120/5f7841effaedd08165f6f7588c987c11.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "inlineEmojis": [] }, { "id": "1049320476033425528", "type": "Default", "timestamp": "2022-12-05T08:44:56.918-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Gave `1` Rep to **Prussia** (current: `#3` - `28`)", "author": { "id": "204255221017214977", "name": "YAGPDB.xyz", "discriminator": "8760", "nickname": "Banner.xyz", "color": "#E91E63", "isBot": true, "roles": [ { "id": "814516079061762098", "name": "Role Bots", "color": null, "position": 86 }, { "id": "745163596568199269", "name": "BOTS", "color": "#E91E63", "position": 45 }, { "id": "808438816162578483", "name": "YAGPDB.xyz", "color": null, "position": 24 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/204255221017214977/a_f745fbd1c07799ac4ec443e988e2b766.gif?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049501406521991188", "type": "Default", "timestamp": "2022-12-05T20:43:54.108-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "well deserved! \uD83D\uDD25", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [ { "id": "", "name": "\uD83D\uDD25", "code": "fire", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f525.svg" } ] }, { "id": "1049826008280342548", "type": "Default", "timestamp": "2022-12-06T18:13:45.198-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "hi!", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049826045710307328", "type": "Default", "timestamp": "2022-12-06T18:13:54.122-05:00", "timestampEdited": "2022-12-06T18:14:21.632-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "i wrote up a solution for this problem as well", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [ { "id": "1049826045240553512", "url": "https://cdn.discordapp.com/attachments/1048653805237047366/1049826045240553512/image.png?ex=67c0f1b2&is=67bfa032&hm=4b6f173335d06c77611adfcd5d157bcafdda5aaecf35af2c1b8b0e28914cf657&", "fileName": "image.png", "fileSizeBytes": 78586 } ], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049826107236565102", "type": "Default", "timestamp": "2022-12-06T18:14:08.791-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "was hoping someone can take a look at it, for any suggestions or such", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1049826690743947284", "type": "Default", "timestamp": "2022-12-06T18:16:27.91-05:00", "timestampEdited": "2022-12-06T18:16:33.294-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "objective is to ensure it passes the time constraint's \uD83D\uDE05", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [ { "id": "", "name": "\uD83D\uDE05", "code": "sweat_smile", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f605.svg" } ] }, { "id": "1049861366581841920", "type": "Default", "timestamp": "2022-12-06T20:34:15.274-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": ":pensive_cow_guy_whatever_idk:", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [ { "id": "1039346544220065822", "name": "pensive_cow_guy_whatever_idk", "code": "pensive_cow_guy_whatever_idk", "isAnimated": false, "imageUrl": "https://cdn.discordapp.com/emojis/1039346544220065822.png" } ] }, { "id": "1049867783233617990", "type": "Reply", "timestamp": "2022-12-06T20:59:45.123-05:00", "timestampEdited": "2022-12-06T21:00:12.08-05:00", "callEndedTimestamp": null, "isPinned": false, "content": "We need to see the code", "author": { "id": "676414144643203120", "name": "hudsong0", "discriminator": "0000", "nickname": "Hudson", "color": "#D4AF37", "isBot": false, "roles": [ { "id": "743031297089339492", "name": "ADMIN", "color": "#D4AF37", "position": 93 }, { "id": "744557622262366309", "name": "Trusted", "color": "#11806A", "position": 90 }, { "id": "743482290180587614", "name": "Moderator", "color": "#E67E22", "position": 89 }, { "id": "802264469832597526", "name": "Trial moderator", "color": "#992D22", "position": 88 }, { "id": "1019197326495064136", "name": "FOOTED", "color": "#E8BEAC", "position": 83 }, { "id": "743481776676143205", "name": "Level 5", "color": "#3232E2", "position": 81 }, { "id": "746976140937396224", "name": "Helper", "color": "#6F0035", "position": 76 }, { "id": "805850008040898621", "name": "CodeCom Judge", "color": "#E74C3C", "position": 74 }, { "id": "848201437573152790", "name": "Highly Active", "color": "#A26D27", "position": 73 }, { "id": "809501289163391026", "name": "Honorary member", "color": "#3600FF", "position": 70 }, { "id": "821492358326517840", "name": "Server Bumper", "color": "#A6AEFF", "position": 69 }, { "id": "874858515838148608", "name": "Music", "color": "#2ECC71", "position": 66 }, { "id": "821123781279350784", "name": "Truth Seeker", "color": "#2ECC71", "position": 65 }, { "id": "743031248452321310", "name": "Language Maker", "color": "#2ECC71", "position": 64 }, { "id": "813448238433959947", "name": "Good Leader", "color": "#2ECC71", "position": 63 }, { "id": "821123981717274654", "name": "Bot Maker", "color": "#2ECC71", "position": 62 }, { "id": "800384434825986048", "name": "FullStack", "color": "#2ECC71", "position": 61 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "750234470379946004", "name": "Help-Aardvark", "color": null, "position": 59 }, { "id": "746976912181821511", "name": "Help-JS", "color": null, "position": 58 }, { "id": "746976986777255937", "name": "Help-C", "color": null, "position": 57 }, { "id": "824686275470032967", "name": "Help-C++", "color": null, "position": 55 }, { "id": "1069778726457450557", "name": "Help-HTML/CSS", "color": null, "position": 52 }, { "id": "854548376393089044", "name": "User-Made Challenge Ping", "color": null, "position": 51 }, { "id": "854547959445323806", "name": "Official Challenge Ping", "color": "#525252", "position": 50 }, { "id": "814614879045812324", "name": "Poll Ping", "color": null, "position": 49 }, { "id": "849178678701064203", "name": "pog a conversation starter", "color": "#E74C3C", "position": 48 }, { "id": "831902814950522900", "name": "Stream Ping", "color": null, "position": 47 }, { "id": "849032245279850506", "name": "Announcement Ping", "color": null, "position": 46 }, { "id": "744158968854741044", "name": "Project: Aardvark", "color": "#9B59B6", "position": 43 }, { "id": "813475475816710184", "name": "Project: Blossoming", "color": "#9B59B6", "position": 40 }, { "id": "808434733486571570", "name": "Project: CSISP", "color": "#9B59B6", "position": 36 }, { "id": "878363922099490846", "name": "Misc Access", "color": "#009BFF", "position": 14 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/676414144643203120/5f7841effaedd08165f6f7588c987c11.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "reference": { "messageId": "1049826107236565102", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1049914772981817434", "type": "Reply", "timestamp": "2022-12-07T00:06:28.352-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "code pls. probably using too many loops", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" } ], "reference": { "messageId": "1049826045710307328", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1050068375025496157", "type": "Reply", "timestamp": "2022-12-07T10:16:49.933-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "```py\nn, m = list(map(int, input().split())) \nadj_matrix = [[0]*n for i in range(n)] \n \nfor line in range(m): \n a, b = list(map(int, input().split())) \n adj_matrix[a][b] = 1 \n adj_matrix[a][a] = 1 \n \n \ncounts = {i: [] for i in range(n)} \nfor a in range(n): \n for b in range(n): \n if a == b: \n if a not in counts[a]: \n counts[b].append(a) \n else: \n if adj_matrix[a][b] == 1: \n if a not in counts[b]: \n counts[b].append(a) \n for c in range(n): \n if adj_matrix[b][c] == 1: \n if a not in counts[c]: \n counts[c].append(a) \n \n# print(counts) \ncounts = [(i, len(counts[i])) for i in counts] \ncounts.sort(key=lambda x: x[1], reverse=True) \nverts = [counts[0][0]] \nn = counts[0][1] \nfor c, l in counts[1:]: \n if l != n: \n break \n else: \n verts.append(c) \n \nprint(n) \nfor vert in verts: \n print(vert, end=\" \") ```", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1049914772981817434", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1050539104728776734", "type": "Default", "timestamp": "2022-12-08T17:27:20.64-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "\uD83D\uDE05", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [ { "id": "", "name": "\uD83D\uDE05", "code": "sweat_smile", "isAnimated": false, "imageUrl": "https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f605.svg" } ] }, { "id": "1050548859329331240", "type": "Default", "timestamp": "2022-12-08T18:06:06.318-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "trying to understand code rn", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1050548889817722982", "type": "Default", "timestamp": "2022-12-08T18:06:13.587-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "so it works, just takes too long right?", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1050575022181330964", "type": "Reply", "timestamp": "2022-12-08T19:50:04.028-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "tested the max output within the time frame in a buggy IDE", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1050548889817722982", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1050575059401584680", "type": "Default", "timestamp": "2022-12-08T19:50:12.902-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "if u can double check if it runs within 9 sec", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1050575095745216552", "type": "Reply", "timestamp": "2022-12-08T19:50:21.567-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "Yea nw", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [ { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" } ], "reference": { "messageId": "1050548859329331240", "channelId": "1048653805237047366", "guildId": "743031115207540836" }, "inlineEmojis": [] }, { "id": "1051972268252733491", "type": "Default", "timestamp": "2022-12-12T16:22:13.451-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "turns out it was not linear time", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1051972336217227404", "type": "Default", "timestamp": "2022-12-12T16:22:29.655-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "nevertheless", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1051972345553760266", "type": "Default", "timestamp": "2022-12-12T16:22:31.881-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "thank you", "author": { "id": "658881928744927292", "name": "hzz23", "discriminator": "0000", "nickname": "Hz23", "color": "#A6D5FF", "isBot": false, "roles": [ { "id": "743483193721749564", "name": "Level 2", "color": "#A6D5FF", "position": 78 }, { "id": "746976713959014460", "name": "Help-Python", "color": null, "position": 60 }, { "id": "1028001755260276856", "name": "Help-Rust", "color": null, "position": 6 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/658881928744927292/892ef5f74bc0c60e327024733b0a6ba6.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] }, { "id": "1053458747986563082", "type": "Default", "timestamp": "2022-12-16T18:48:57.837-05:00", "timestampEdited": null, "callEndedTimestamp": null, "isPinned": false, "content": "ah sorry Ibput this on my todo list and totally forgot", "author": { "id": "239770148305764352", "name": "prussia_d", "discriminator": "0000", "nickname": "Prussia", "color": "#A6AEFF", "isBot": false, "roles": [ { "id": "743482969359908968", "name": "Level 3", "color": "#A6AEFF", "position": 79 }, { "id": "796749869318012958", "name": "CodeCom Winner", "color": "#6400FF", "position": 75 }, { "id": "800385754219937792", "name": "CodeCom Participant", "color": "#E91E63", "position": 72 }, { "id": "802608559216918539", "name": "Project: share", "color": "#9B59B6", "position": 28 }, { "id": "1031694102858842182", "name": "Project: bmp-rust", "color": "#9B59B6", "position": 4 } ], "avatarUrl": "https://cdn.discordapp.com/avatars/239770148305764352/529b8a7d2853392e9f3ae0a78bbb3a28.png?size=512" }, "attachments": [], "embeds": [], "stickers": [], "reactions": [], "mentions": [], "inlineEmojis": [] } ], "messageCount": 83 }