| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 126991 | 左维哲 | 18插队喝水 | C++ | Wrong Answer | 1 MS | 272 KB | 290 | 2025-07-23 12:18:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,t,m; cin>>n; int a[n]; for(int i=0;i<n;i++){ cin>>a[n]; }cin>>m; for(int i=0;i<m-1;i++){ cout<<a[i]<<" "; }t=a[n]; a[n-1]=a[n-2]; a[n]=a[n-2]; for(int i=m;i<n;i++){ cout<<a[i]; } return 0; }
------Input------
48 10 48 51 58 40 90 5 59 60 47 97 8 68 52 35 37 70 9 76 1 86 75 33 42 63 18 44 92 36 10 19 6 42 69 40 41 33 22 48 1 84 58 72 24 36 88 27 83 16
------Answer-----
10 48 51 58 40 90 5 59 60 47 97 8 68 52 35 83 37 70 9 76 1 86 75 33 42 63 18 44 92 36 10 19 6 42 69 40 41 33 22 48 1 84 58 72 24 36 88 27
------Your output-----
8034176 0 4962424 0 8044952 0 1035466240 506065335 8043872 0 8043872 0 -1084118640 32764 4826912 48270560-1084118624327640042521610-108411867632764-108411867232764-10841186403276446069180-108411867632764-1084118672327641016809984048010354662405060653350000