Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82388 sh25_shenpy 格子问题 C++ 解答错误 0 MS 248 KB 476 2026-01-11 19:38:49

Tests(1/4):


#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-abs(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; }


测评信息: