| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 314773 | 朱梓骏 | [ 2021年绍兴市第十九届少儿信息学竞赛复赛 ] - 臭豆腐(toufu) | C++ | Wrong Answer | 60 | 1 MS | 252 KB | 230 | 2025-03-28 18:52:49 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[55],h=0,s=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ for(int j=i+1;j<=n;j++){ s+=a[i]*a[j]; } } cout<<s; }