Codeforces Round 847 Div 3 | Problem B : Taisia And Dice Solution |Explanation+Code| Hindi Editorial

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 9

  • @KaranMashru
    @KaranMashru Год назад +5

    (Subscribe for more such videos)
    Code :
    #include
    using namespace std;
    #define ll long long
    int main()
    {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    ll t, n, s, r, i, j, val;

    cin>>t;

    for(;t--;)
    {
    cin>>n>>s>>r;

    val=s-r;

    cout

  • @CNILOYBARUA
    @CNILOYBARUA Год назад

    thanks sir make more and more videos

  • @PrasanthPedaprolu
    @PrasanthPedaprolu Год назад

    Thank you sir...

  • @Super-lj1rf
    @Super-lj1rf Год назад

    thanks

  • @ShyamSundar-fx8gp
    @ShyamSundar-fx8gp Год назад

    You always covers the concept in depth which always gives me a new idea every time to approach for any new question. Thank u so much sir pls keep continuing this.

  • @anonymoustechdot9598
    @anonymoustechdot9598 Год назад +1

    sir there is nested loop in this then why complexity was not O(tn^2)?

  • @shashankgaur3917
    @shashankgaur3917 Год назад +1

    I solved this in 2min thinking that printing the max value n times would suffice,
    but then i came back after solving c and saw the wrong answer.
    (How can i even forgot that sum is r😅).
    Thanks for the explaination.

  • @ajourneyofabeginner
    @ajourneyofabeginner Год назад +1

    need solution d, e

  • @vishalbairagi5364
    @vishalbairagi5364 Год назад

    thank you sir