[ prog / sol / mona ]

prog


Marvin Minsky - The Beauty of the Lisp Language

61 2020-10-07 02:49
#include <iostream>
#include <string>
#include <gmpxx.h>
using namespace std;
string lispread(void){ string a;
 getline(cin,a); return a;}
mpz_class tonum(string x,int base=10){
mpz_class a;a.set_str(x,base);return a;}
void printbase(int base=10){ cout << 1+(tonum(lispread(),base));}
int main(){
printbase();
}
301


VIP:

do not edit these