Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6518 黄言岐 矩阵旋转 C++ Wrong Answer 1 MS 296 KB 527 2025-03-01 15:28:28

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m,a[101][101]; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[i][j]; } } for(int j=0;j<m;j++){ for(int i=0;i<n;i++) cout<<a[i][j]<<" "; cout<<endl; } return 0; }


Run Info:

------Input------
99 41 75 43 37 151 149 80 237 219 54 101 5 201 0 133 112 112 155 67 190 39 206 227 120 105 250 203 190 227 231 52 47 202 195 37 9 114 104 162 145 29 222 33 182 17 33 61 241 237 36 174 111 60 21 121 114 75 227 100 245 56 254 173 143 76 94 251 153 138 198 149 147 136 74 210 196 126 15 209 33 157 82 105 112 162 171 99 173 170 147 231 173 72 37 53 1 213 33 150 29 7 54 145 186 197 129 97 120 58 81 167 200 41 45 93 9 128 24 11 241 47 19 61 47 58 228 52 78 13 22 220 221 17 65 254 205 124 139 183 26 109
------Answer-----
165 252 150 229 234 157 171 204 114 214 253 60 154 145 187 61 87 146 224 219 243 101 19 186 9 135 195 222 196 212 131 180 84 49 164 100 178 122 17 90 149 175 112 19 179 90 118 37 61 68 138 147 149 88 157 79 83 215 73 15 119 190 41 85 240 117 120 186 77 186 237 123 194 204 214 70 95 220 116 70 140 176 150 109 200 154 121 1 163 153 223 106 249 205 109 58 112 33 75 184 119 83 225 62 23 144 82 5 33 184 208 106 7 53 247 254 170 2 77 81 152 23 153 0 138 26 131 2 30 68 109 47 209 145 145 18 65 44 92 24
------Your output-----
75 33 112 58 109 205 249 106 223 153 163 1 121 154 200 109 150 176 140 70 116 220 95 70 214 204 194 123 237 186 77 186 120 117 240 85 41 190 119 15 73 215 83 79 157 88 149 147 138 68 61 37 118 90 179 19 112 175 149 90 17 122 178 100 164 49 84 180 131 212 196 222 195 135 9 186 19 101 243 219 224 146 87 61 187 145 154 60 253 214 114 204 171 157 234 229 150 252 165 43 182 162 228 68 85 219 217 183 233 92 177 4 253 168 115 45 193 229 167 138 9 82 110 221 145 251 240 167 132 170 253 187 62 32 238 19