首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
happyday
2022年4月7日 15:28
全排列
P1736
回复 0
|
赞 4
|
浏览 5.8k
#include <bits/stdc++.h> using namespace std; bool check(string s){ int num = atoi(s.c_str()); if(num%30==0) return true; return false; } int main(){ string s; cin>>s; int maxx=0; do{ if(check(s)){ maxx = max(maxx,atoi...
Ashley1101
2022年2月23日 16:43
【回溯法】求30的倍数
P1736
回复 0
|
赞 3
|
浏览 5.5k
#include<algorithm> #include<vector> #include<string> #include<iostream> using namespace std; //回溯法 string function(string num, string &tmp, int &flag) { //填完所有数字 if (num.empty()) { &n...
James
2021年3月20日 18:22
各个位置和为3的倍数同时至少有一个零则满足条件
P1736
回复 0
|
赞 5
|
浏览 10.4k
#include <iostream> #include <algorithm> #include <stack> #include <string.h> #include <stdio.h> #include <queue> using namespace std; const int maxn=10005; bool cmp(int x,int y){ return x>y; } string s; int a[maxn]; int main(){ ...
1
2
题目
求30的倍数
题解数量
13
发布题解
在线答疑
热门题解
1
求30的倍数 题解:冷知识,能被3整除的数每位加起来的和也可以被3整除
2
直接调用全排列函数,这类题直接秒杀
3
求30的倍数 题解:挑战最短代码ac
4
求30的倍数 题解:
5
求30的倍数 题解:暴力之prev_permutation
6
求30的倍数 题解:
7
求30的倍数 题解:数学优化
8
求30的倍数 题解:C++全排列函数
9
求30的倍数 题解:写多了,家人们一定要赋初始值
10
各个位置和为3的倍数同时至少有一个零则满足条件