Solution for https://t.me/prograchallenges/71
============================
Python (not fully working) by @arcobi: https://pastebin.com/uXjXph6Q
C++ by @arcobi: https://pastebin.com/AsnBssUN
C++ by @lulzx: hastebin.com/varenipiye.cpp
============================
Python (not fully working) by @arcobi: https://pastebin.com/uXjXph6Q
C++ by @arcobi: https://pastebin.com/AsnBssUN
C++ by @lulzx: hastebin.com/varenipiye.cpp
Telegram
Programming Challenges
Squares!
difficulty: medium
time: 1h
languages: any
=================
Given height and width of a rectangle, find the least number of squares you can cut off from it. Example: 5, 3 should return 4. 20, 14 should return 6.
credits @arcobi
difficulty: medium
time: 1h
languages: any
=================
Given height and width of a rectangle, find the least number of squares you can cut off from it. Example: 5, 3 should return 4. 20, 14 should return 6.
credits @arcobi
Forwarded from Programming Challenges
Counting days
difficulty: easy
time: 2h
languages: any
====================
Given an amount of days n, calculate the date of today + n in the format "DD / MM / YYYY"
credits: @arcobi
difficulty: easy
time: 2h
languages: any
====================
Given an amount of days n, calculate the date of today + n in the format "DD / MM / YYYY"
credits: @arcobi
Solutions for https://t.me/prograchallenges/84
==================================
C++ by @arcobi: https://pastebin.com/DhLKmS3p
Rust by @Jay_009: https://play.rust-lang.org/?gist=fb03433ce1ff980d720d493741503a2c&version=stable&mode=debug
==================================
C++ by @arcobi: https://pastebin.com/DhLKmS3p
Rust by @Jay_009: https://play.rust-lang.org/?gist=fb03433ce1ff980d720d493741503a2c&version=stable&mode=debug
Telegram
Programming Challenges
BIN to DEC!
Difficulty: easy
Time: 20
Languages: any
=====================
Make an algorythm that converts a binary representation of a number (string of digits) into a decimal representation of a number.
#input #output #algorythm #decimal #binary #conversion…
Difficulty: easy
Time: 20
Languages: any
=====================
Make an algorythm that converts a binary representation of a number (string of digits) into a decimal representation of a number.
#input #output #algorythm #decimal #binary #conversion…
Forwarded from Jay
Rust solution for Capitalism
https://play.rust-lang.org/?gist=2cc87432dd64c9b4ed1667e5bcc02fc2&version=stable&mode=debug
https://play.rust-lang.org/?gist=2cc87432dd64c9b4ed1667e5bcc02fc2&version=stable&mode=debug
Forwarded from Jay
Rust solution for Advanced Chessboard
https://play.rust-lang.org/?gist=302810290152e646554bf380bae865f8&version=stable&mode=debug&edition=2015
https://play.rust-lang.org/?gist=302810290152e646554bf380bae865f8&version=stable&mode=debug&edition=2015
Forwarded from Jay
Rust solution for Simple threading
https://play.rust-lang.org/?gist=d3ddfb0d5998f96ef83b9b7b5773da84&version=stable&mode=debug&edition=2015
https://play.rust-lang.org/?gist=d3ddfb0d5998f96ef83b9b7b5773da84&version=stable&mode=debug&edition=2015
Forwarded from Deleted Account
Solution from: @arcobi. Solution_link: https://pastebin.com/MVYCaLTu. To report, /report (username). To block, /block
Pastebin
python - challenges - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Forwarded from Jay
Rust solution for !yeH (Reverse String)
https://play.rust-lang.org/?gist=1ee0bcfde0765a21957d985958fd4951&version=stable&mode=debug&edition=2015
https://play.rust-lang.org/?gist=1ee0bcfde0765a21957d985958fd4951&version=stable&mode=debug&edition=2015
Forwarded from Deleted Account
>>> 'hello world'[::-1]
'dlrow olleh'
'dlrow olleh'
Forwarded from Deleted Account
while a%b:
a,b = b,a%b
print("\n",b)
a,b = b,a%b
print("\n",b)
Forwarded from Deleted Account
C++
#include<iostream>
Using namespace std;
Int main()
{
int a ;
cin >>a;
int w=a*2+5;
for (int x= 0;x<a;++x)
{
for(int y=2;y>= 0;--y)
{
for(int z=0; z<a+y-x;++z ).
{
cout<<" ";
}
for( int z=0;z<x*2-y*2+5;++z )
{
cout<<".";
}cout <<endl;
}
}
for(int x=0; x<w/5+1;++x)
{
for(int z=0; z<w/3+1;++z)
{
cout<<" ";
}
for( int z=0;z<w-(w/3+1)*2;z+=1)
{
cout <<"#";
}
cout <<endl;
}
}
#include<iostream>
Using namespace std;
Int main()
{
int a ;
cin >>a;
int w=a*2+5;
for (int x= 0;x<a;++x)
{
for(int y=2;y>= 0;--y)
{
for(int z=0; z<a+y-x;++z ).
{
cout<<" ";
}
for( int z=0;z<x*2-y*2+5;++z )
{
cout<<".";
}cout <<endl;
}
}
for(int x=0; x<w/5+1;++x)
{
for(int z=0; z<w/3+1;++z)
{
cout<<" ";
}
for( int z=0;z<w-(w/3+1)*2;z+=1)
{
cout <<"#";
}
cout <<endl;
}
}
Forwarded from Deleted Account
.
...
.....
...
.....
.......
.....
.......
.........
.......
.........
...........
.........
...........
.............
###
###
###
...
.....
...
.....
.......
.....
.......
.........
.......
.........
...........
.........
...........
.............
###
###
###
Forwarded from Deleted Account
.
...
.....
...
.....
.......
.....
.......
.........
.......
.........
...........
.........
...........
.............
###
###
###
...
.....
...
.....
.......
.....
.......
.........
.......
.........
...........
.........
...........
.............
###
###
###
