Tag: problem: (C) Mahmoud and Ehab and the wrong algorithm Solution In C/C++

Codeforces Round #473 (Div. 2), problem: (C) Mahmoud and Ehab and the wrong algorithm Solution In C/C++

#include<stdio.h> int main(){ int n; scanf(“%d”,&n); if(n <= 5) printf(“-1n”); else{ printf(“1 2n2 3n2 4n”); for(int i = 5;i <= n;i++) printf(“1 %dn”,i); } for(int i = 2;i...

Want to stay up to date with the latest news?

We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!