Python++; The Future is Here!
main.pypp:
from pypp import *
#include <iostream>
#include <vector>
#pragma GCC optimize ("O3")
#pragma GCC target ("avx,avx2")
sync_with_stdio(False);
cin.tie(0); cout.tie(0);
cout << "C++ IO in python, guaranteed ";
cout << 200 << " % speedup" << endl;
a = 0;
b = 0;
a <<= cin;
b <<= cin;
c = "";
c <<= cin;
A = vector<<int>>(5);
A <<= cin;
B = vector<<int>>(4,2);
cout << a << ' ' << b << '\n';
cout << c << '\n';
cout << A << '\n' << B << endl;
pypp.py
import sys
/r/Python
https://redd.it/bajfy1
main.pypp:
from pypp import *
#include <iostream>
#include <vector>
#pragma GCC optimize ("O3")
#pragma GCC target ("avx,avx2")
sync_with_stdio(False);
cin.tie(0); cout.tie(0);
cout << "C++ IO in python, guaranteed ";
cout << 200 << " % speedup" << endl;
a = 0;
b = 0;
a <<= cin;
b <<= cin;
c = "";
c <<= cin;
A = vector<<int>>(5);
A <<= cin;
B = vector<<int>>(4,2);
cout << a << ' ' << b << '\n';
cout << c << '\n';
cout << A << '\n' << B << endl;
pypp.py
import sys
/r/Python
https://redd.it/bajfy1
reddit
r/Python - Python++; The Future is Here!
24 votes and 7 comments so far on Reddit