23数二杨帆
23数二杨帆
全部文章
分类
题解(22)
归档
标签
去牛客网
登录
/
注册
23数二杨帆的博客
全部文章
(共22篇)
题解 | #零钱兑换#
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int cnt=0; for(int i=0;i<=n;i++) for(int j=0;j<=n;j++) for(...
C++
C
2023-10-30
0
231
题解 | #数位之和#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int sum = 0; while(n != 0) { sum = sum + n % 10; n = n...
C++
C
2023-10-30
0
285
题解 | #选村长#
#include <bits/stdc++.h> using namespace std; int main() { int n , sum = 0 , len = 0; int a[1000]; while(cin >> n , n != (-1) ) { len ++; ...
C++
C
2023-10-30
0
248
题解 | #约数之和#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for( int i = 1000; i < n ; i ++ ) { int m = i; int ...
C++
2023-10-30
0
211
题解 | #四位数#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for( int i = 1000; i < n ; i ++ ) { int m = i; int ...
C++
2023-10-30
0
198
题解 | #3和5和7#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for( int i = 1 ; i <= n ; i ++ ) if(i % 3 == 2 &&am...
C++
2023-10-30
0
267
题解 | #3和5#
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for( int i = 1 ; i <= n ; i ++ ) if(i % 3 == 0) { ...
C++
2023-10-30
0
258
题解 | #多组数据a+b III#
#include <bits/stdc++.h> using namespace std; int main() { int a , b; while( cin >> a && cin >> b , a != 0 , b != 0 ) { ...
C++
2023-10-29
0
301
题解 | #多组输入a+b II#
#include <bits/stdc++.h> using namespace std; int main() { int n; int a , b; cin >> n; while( n -- ) { cin >> a >> b; cout <...
C++
2023-10-29
0
323
题解 | #更相减损术#
#include <bits/stdc++.h> using namespace std; int main() { int a , b; int t = 0; cin >> a >> b; if( a > b ) swap(a , b); for( int...
C++
2023-10-29
0
275
首页
上一页
1
2
3
下一页
末页