![](/notes/imgs/wechat-color.jpg)
GESP模拟一级答案
发布时间:
选择题: DBCCCCCDBDBCBDA
判断题:TFTTTFTTFT
编程题 1:
js
#include <iostream>
using namespace std;
int main() {
int n;cin >> n;
int cnt=n,sum=0;
for (int i=1;i<=n;i++) {
int a;cin >> a;
if (a%3==0 || a%10==3)
cnt--;
else
sum+=a;
}
cout << sum << " " << cnt << endl;
return 0;
}
编程题 2:
js
#include <iostream>
using namespace std;
int main() {
int m,d,w=0;
cin >> m >> d;
if (m==1 || m==3 || m==5 || m==7 || m==8 || m==10 || m==12)
w=31;
else if (m==4 || m==6 || m==9 || m==11)
w=30;
else
w=28;
if (d==w)
cout << m%12+1 << " " << 1;
else
cout << m << " " << d+1;
return 0;
}