Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82395 sh25_shenpy 有重复元素的排列问题 C++ 无测评数据 0 MS 0 KB 469 2026-01-11 19:50:16

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main() { int n,i,j; cin>>n>>i>>j; for(int k=1;k<=n;++k){ cout<<"("<<i<<","<<k<<")"; } cout<<endl; for(int k=1;k<=n;++k){ cout<<"("<<k<<","<<j<<")"; } cout<<endl; for(int k=1;k<=n-j+i;++k){ cout<<"("<<k<<","<<k+abs(j-i)<<")"; } cout<<endl; for(int k=n;k>=i+j-n;--k){ cout<<"("<<k<<","<<i+j-k<<")"; } return 0; }