[ prog / sol / mona ]

prog


Marvin Minsky - The Beauty of the Lisp Language

56 2020-10-07 02:09

#include <iostream>
#include <string>
#include <gmpxx.h>
void printinc(int base){ //(let ((*print-base* 10)) (print (1+ (read))))
using namespace std;
string a;
mpz_class inp;
getline(cin,a) ;
inp.set_str(a,base);
cout<< inp+1;
}
int main(){
printinc(10);
}

301


VIP:

do not edit these