Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
82394 sh25_shenpy 格子问题 C++ 解答错误 1 MS 244 KB 466 2026-01-11 19:46:04

Tests(0/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=i;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; }


测评信息: