
Lv.1
签名:备考CSP-J(最近实在是没有时间弄Python了)
在 找朋友!!! 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/bc/otm_thumb.gif"alt="emotion_奥特曼"
2022-08-12T15:48:39 点赞:1
在 代码里使用"<"和">"判错是怎么回事 中回复
input所接受的变量默认为str类型,因此,应该在第一行改成
i = int(input('请输入数字:'))2022-08-13T22:05:16 点赞:2
在 【社区里谁会C++】 中回复
正在学
#include <bits/stdc++.h>
using namespace std;
int main(){
int n, s = 0;
cin >> n;
for(int x = 0; x <= n / 5; x++){
for(int y = 0; y <= n / 2; y++){
int z = n - x * 5 - y * 2;
if(z >= 0) s++;
}
}
cout << s;
return 0;
}2022-08-14T22:12:57 点赞:0
在 【求助】怎么建造一个网站呀? 中回复
三丰云,能白嫖服务器 然后下一个ftp软件,连上服务器,然后肝代码就行了 三丰云:www.sanfengyun.com/control/#/product
2022-08-16T16:21:33 点赞:0
在 谁会做这道题?------------------------------------------- 中回复
# 方法一:取余
a = int(input())
print(f"百:{int(a / 100)},十:{int(a / 10 % 10)},个:{int(a % 100 % 10)}")
# 方法二:下标
a = str(a)
print(f"百:{a[0]},十:{a[1]},个:{a[2]}")2022-08-23T14:47:59 点赞:1