Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82386 sh25_shenpy 格子问题 C++ 编译错误 0 MS 0 KB 467 2026-01-11 19:37:06

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+j-i<<")"; } cout<<endl; for(int k=n;k>=i+j-n;--k){ cout<<"("<<k<<","<<i+j-k<<")"; } return 0; } }


测评信息: