牛客857079027号
牛客857079027号
全部文章
分类
未归档(1)
题解(60)
归档
标签
去牛客网
登录
/
注册
牛客857079027号的博客
全部文章
(共58篇)
题解 | #单词倒排#
while True: try: a=input() for i in range(len(a)): if not a[i].isalpha(): a=a.replace(a[i],' ') ...
Python3
2022-02-12
0
339
题解 | #完全数计算#
while True: try: a = int(input()) res = 0 for i in range(1,a+1): s=0 for j in range(1,i//2+1): ...
Python3
2022-02-12
0
409
题解 | #放苹果#
#include<iostream> using namespace std; int nums = 0; void methods(int a, int b){ if (a<b) b=a; if (a==0||a==1||b==1){ num...
C++
2022-01-16
0
360
题解 | #杨辉三角的变形#
#include <iostream> using namespace std; int main() { int n; while(cin>>n) { if(n<=2) cout<<-1<...
C++
2022-01-15
0
421
题解 | #蛇形矩阵#
#include<iostream> #include<string> using namespace std; int main(){ int n; while (cin>>n){ int beg = 1; fo...
C++
2022-01-15
0
384
题解 | #汽水瓶#
#include<iostream> using namespace std; int main(){ int n; //cin>>n; while(cin>>n , n!=0){ cout<<n/2<&l...
C++
2022-01-14
0
349
题解 | #字符串反转#
#include<iostream> #include<string> using namespace std; int main(){ string str; cin>>str; for (int i = str.size()-1; ...
C++
2022-01-14
0
292
题解 | #数字颠倒#
#include<iostream> #include<algorithm> //需要reverse函数 using namespace std; int main(){ int n; cin>>n;//接收整型输入 string st...
C++
2022-01-14
0
297
分糖果
n = int(4) s = int(16)#当前拥有的糖果 f = 1 #f是需要给个人的糖果 res = [0]*n def ss(n,s,f,res): for i in range(n): if s >= f:#满足需求 ...
Python3
2021-12-22
0
298
题解 | #迷宫问题#
while True: try: m,n = map(int,input().split()) matrix = [] for i in range(m): d = list(map(int,input().split(...
Python3
2021-12-22
2
418
首页
上一页
1
2
3
4
5
6
下一页
末页