#include <stdio.h> int main() { int num = 0; while(~scanf("%d",&num)) { int head_num = num*num-num+1; for(int i=0; i<num-1; i++) { printf("%d%c",head_num,'+'); head_num += 2; } printf("%d",head_num); putchar('\n'); } return 0; }
#include <stdio.h> int main() { int num = 0; while(~scanf("%d",&num)) { int head_num = num*num-num+1; for(int i=0; i<num-1; i++) { printf("%d%c",head_num,'+'); head_num += 2; } printf("%d",head_num); putchar('\n'); } return 0; }