Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81087 杜奕辰 19选班长II C++ Wrong Answer 0 MS 268 KB 249 2024-07-12 09:57:29

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[4]; int main(){ int k; for(int i=1;i<1000;i++){ cin>>k; if(k==-1){ break; }else{ a[k]++; } } cout<<a[1]<<endl; cout<<a[2]<<endl; cout<<a[3]<<endl; return 0; }


Run Info:

------Input------
4 3 4 2 1 3 1 4 1 4 1 2 1 3 3 1 3 4 3 1 4 4 4 4 4 4 4 4 1 1 4 4 1 2 4 3 4 2 1 2 1 3 3 3 -1
------Answer-----
A=12 B=5 C=10 Tot=44 all-NO
------Your output-----
12 5 10