Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
110429 | 洪鑫阳 | 二维数组的存储 | C++ | Wrong Answer | 0 MS | 268 KB | 416 | 2025-02-20 16:56:27 |
#include<iostream> using namespace std; int main() { int n[3][4]; for(int i=0;i<3;i++) { for(int j=0;j<4;j++) { cin>>n[i][j]; } } for(int i=0;i<3;i++) { for(int j=0;j<4;j++) { if(n[i][j]/100>=1) { cout<<" "<<n[i][j]; } if(n[i][j]/10>=1) { cout<<" "<<n[i][j]; } else { cout<<" "<<n[i][j]; } } cout<<"\n"; } return 0; }
------Input------
109 292 291 23 393 329 202 19 309 101 393 1
------Answer-----
109 292 291 23 393 329 202 19 309 101 393 1
------Your output-----
109 109 292 292 291 291 23 393 393 329 329 202 202 19 309 309 101 101 393 393 1