From f2f89a41e619318cb88be27d05c3e2f59cc41e16 Mon Sep 17 00:00:00 2001 From: mayanjain17 <91695090+mayanjain17@users.noreply.github.com> Date: Fri, 1 Oct 2021 22:20:04 +0530 Subject: [PATCH] Added Fixfix codechef solution Codechef Fixed number of fixed Points solution --- Fixfix.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Fixfix.cpp diff --git a/Fixfix.cpp b/Fixfix.cpp new file mode 100644 index 0000000..fe1bf1a --- /dev/null +++ b/Fixfix.cpp @@ -0,0 +1,35 @@ +#include +using namespace std; +using ll = long long int; +const int mod = 1e9 + 7; + +void solve(){ + int n,k; + cin>>n>>k; + if(n-k==1){ + cout<<-1<<'\n'; + return; + } + for(int i=1 ; i<=k ; i++){ + cout<>t; + int k=1; + while(t--){ + // cout<<"Case #"<