#include <cstdio>int main(){ int n; scanf ("%d",&n); if (n==1||n==2) printf ("?\n"); else { long long t1=1, t2=1, fibo; for (int i=2; i<n; i++) { fibo = t1+t2; t1=t2; t2=fibo; } printf("%lld\n", fibo); while (fibo--) printf ("?"); printf ("\n"); } return 0;}
6
8 ????????
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!