徐天虞
徐天虞
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
徐天虞的博客
全部文章
(共5篇)
题解 | 判断列表是否为空
import sys my_list = [] if len(my_list) == 0: print("my_list is empty!") else: print("my_list is not empty!") for line...
2025-04-13
0
21
题解 | #上下金字塔#
#include <iostream> using namespace std; int main(){ int n; while(cin>>n){ for(int i = 1;i<=n;i++){ for(int...
C++
2025-03-23
0
21
题解 | #零钱兑换#
#include <iostream> using namespace std; int main(){ int n; cin>>n; int count = 0; for(int i = 0;i<=n;i++){ ...
C++
2025-03-20
0
22
题解 | #牛牛学数列6#
#include <iostream> using namespace std; int main(){ int n; int a=0,b=1,c=1,d; cin>>n; if(n==1){ cout<<0; ...
C++
2025-03-19
0
32
题解 | #牛牛学数列4#
#include <iostream> using namespace std; int main(){ int n; int sum = 0; cin>>n; while(n){ int temp = 0; f...
C++
2025-03-19
0
30