English
Open in Telegram
CC++ vs Python
C++ vs Python
@cpp_vs_python · group · Tech · indexed since 2026-08-18 16 July 2024
114members
39 409messages in the index

Messages on 16 July 2024

2024-07-16×
16 July 2024
      1. Z
        funkisya public, protected yoki private deb bowlanadi pythonda def deb bowlanadi
                1. J
                  Aytib qoʻyganing uchun rahmat qoyilbek👍
                        1. J
                          Video sticker
                          sticker.webm · 241 KB · click to show
                          😤
Whole thread · 15 replies →
            1. 4
              qisqa kodlariz o'tmaydi baribir
                    1. 4
                      MOD = 10**9 + 7 class Mint: def init(self, value=0): if isinstance(value, Mint): self.value = value.value else: self.value = value % MOD if self.value < 0: self.value += MOD def int(self): return self.value def iadd(self, other): if isinstance(other, Mint): self.value += other.value else: self.value += other if self.value >= MOD: self.value -= MOD return self def isub(self, other): if isinstance(other, Mint): self.value -= other.value else: self.value -= other if self.value < 0: self.value += MOD return self def imul(self, other): if isinstance(other, Mint): self.value = self.value * other.value % MOD else: self.value = self.value * other % MOD return self def itruediv(self, other): if isinstance(other, Mint): self.value = self.value * pow(other.value, MOD - 2, MOD) % MOD else: self.value = self.value * pow(other, MOD - 2, MOD) % MOD return self def add(self, other): res = Mint(self.value) res += other return res def sub(self, other): res = Mint(self.value) res -= other return res def mul(self, other): res = Mint(self.value) res *= other return res def truediv(self, other): res = Mint(self.value) res /= other return res def repr(self): return str(self.value) def get_bin_digits(x): ret = [] while x > 0: ret.append(x % 2) x >>= 1 return ret[::-1] def solve(): import sys input = sys.stdin.read data = input().strip().split() n = int(data[0]) m = int(data[1]) def dp(pos, dif, any, lead, M): if pos == len(M): return Mint(0) if lead else Mint(1) if
Whole thread · 13 replies →
D
Assalomu alaykum pythondan matritsaga oid 3 tacha misollar bor kim yordam beroladi
      1. Z
        c++ da o'rgganmadim vashe mazgi ekan tinchgina javada yooki pitonda yozib yuraveraman
        1. 4
          unchalik qiyin emas ekan
            1. 4
              #include <stdio.h> #include <tgbot/tgbot.h> int main() { TgBot::Bot bot("PLACE YOUR TOKEN HERE"); bot.getEvents().onCommand("start", [&bot](TgBot::Message::Ptr message) { bot.getApi().sendMessage(message->chat->id, "Hi!"); }); bot.getEvents().onAnyMessage([&bot](TgBot::Message::Ptr message) { printf("User wrote %s\n", message->text.c_str()); if (StringTools::startsWith(message->text, "/start")) { return; } bot.getApi().sendMessage(message->chat->id, "Your message is: " + message->text); }); try { printf("Bot username: %s\n", bot.getApi().getMe()->username.c_str()); TgBot::TgLongPoll longPoll(bot); while (true) { printf("Long poll started\n"); longPoll.start(); } } catch (TgBot::TgException& e) { printf("error: %s\n", e.what()); } return 0; }
                1. 4
                  fayllarni yuklab o'rnatishiz kerak
                    1. 4
                      ha men hozir o'rnatib chiqdim
          1. 4
            algoritm hammasida bir xil ishlaydi
Whole thread · 17 replies →
#
buncha kop 20 qator kod bn ishlayman debma🤣
#
File
image_2024-07-16_11-11-40.png · 8 KB · click to show
😁 xato ekan
  1. 4
    men yuborgan kod xatomikan
Whole thread · 3 replies →
4
faqat boshida fayllarni o'rnatish qiyin
4
visual studio 2022 dan foydalaning
4
visual studio 2022 dan foydalaning
Whole thread · 2 replies →
Whole thread · 1 reply →
Calendar: July 2024
MoTuWeThFrSaSu1425341582678910111191213121481565167717918519202122223246825626142728293031

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count