Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86243 sh25_zhuwy 一维数组转二维数组 C++ 通过 1 MS 248 KB 519 2026-03-27 15:26:55

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int yvonne; int issac,coco; cin>>issac; coco=issac; yvonne=issac*coco; int matthew[yvonne]; int felix[issac][coco]; for(int beth=0;beth<yvonne;beth++) { cin>>matthew[beth]; int andy=beth/coco,liora=beth%coco; felix[andy][liora]=matthew[beth]; } for(int spark=0;spark<issac;spark++) { for(int katherine=0;katherine<coco;katherine++) { cout<<felix[spark][katherine]<<" "; } cout<<endl; } return 0; }


测评信息: