Cod sursa(job #2469903)

Utilizator ArdeleanOficialAlexandru ArdeleanOficial Data 8 octombrie 2019 11:33:41
Problema Lacate Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.19 kb
#include <fstream>
std::ifstream a("lacate.in");std::ofstream b("lacate.out");int n,y,x,cnt,i,j;int main(){a>>n;x=n*(n-1)/2;b<<x<<' '<<n-1<<'\n';for(j=1;j<3;j++)for(i=1;i<=x;i++){b<<i<<' ';cnt++;}}