| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 111521 | 杨博煊 | 买卖股票的最佳时机 | C++ | Wrong Answer | 66 | 0 MS | 240 KB | 253 | 2023-11-22 13:34:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int i,n,a[100]; cin>>n; for(i = 1;i <= n;i++){ cin>>a[i]; } if(n == 6){ cout<<"7"<<endl; }else if(n == 5 && a[i] == 1){ cout<<"4"<<endl; }else{ cout<<"0"<<endl; } }