牛客263号
牛客263号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客263号的博客
全部文章
/ 题解
(共44篇)
题解 | #打印乘法表#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... for (int i=1;i...
C++
2022-06-21
0
235
题解 | #求 1 - n 之间偶数的和#
#include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; // write your code here.......
C++
2022-06-20
0
196
题解 | #判断季节#
#include <iostream> #include <string> using namespace std; string mo(int month){ if (month >= 3 and month <= 5) return "春季"; ...
C++
2022-06-20
0
0
题解 | #判断成绩等级#
#include <iostream> #include <string> using namespace std; string sc(int score) { if (score >= 90 and score <= 100) return "优秀";...
C++
2022-06-20
0
274
题解 | #提取电话号码#
p = input().split("#")[0].split(" ")[0] print(p) for i in p.split("-"): print(i, end="") print()
Python3
2022-06-13
0
285
题解 | #图形面积#
比较复杂 import math, cmath pi = math.pi class Square(object): def __init__(self, line): self.line = line def Calculated_area(self): ...
Python3
2022-06-13
0
338
题解 | #班级管理#
class Student(object): def __init__(self, name, sid, score, homework): self.name = name self.id = sid self.score = score ...
Python3
2022-06-10
1
331
题解 | #球的体积与表面积#
import math pi = math.pi a = input().split(" ") for i in a: r = int(i) print("%.3f" % (pi*r*r*r/3*4), "%.3f" % (4*pi*r*r))
Python3
2022-06-10
0
0
题解 | #牛牛学字母#
s = input() a = dict() for i in range(len(s)): try: a[s[i]] += 1 except: a[s[i]] = 1 for k, v in a.items(): print(k, v)
Python3
2022-06-10
0
290
题解 | #查字典#
fruit = ['apple', 'banana', 'strawberry', 'orange', 'mango', 'grape', 'blueberry'] number = [1,3,5,6,13,21,10] di = dict() for i in range(len(fruit)):...
Python3
2022-06-10
6
0
首页
上一页
1
2
3
4
5
下一页
末页