求助0
查看原帖
求助0
1058749
King_and_Grey楼主2024/7/4 14:16
#include <bits/stdc++.h>
using namespace std;
#define int long long

int n;
signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0),cout.tie(0);
	cin >> n;
	if(n % 3 == 0){
		cout << "Yes\n";
		return 0;
	}
	while(n > 0){
		if(n % 10 == 3){
			cout << "Yes\n";
			return 0;
		}
		n /= 10;
	}
	cout << "No\n";
	return 0;
}

加了怎么还是0分?

2024/7/4 14:16
加载中...