Nicole_jian
Nicole_jian
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Nicole_jian的博客
全部文章
(共104篇)
题解 | #判断整数奇偶性#
#include <iostream> int main() { int num; while (std::cin >> num) { if (num % 2 == 0) { std::cout << &q...
2024-05-22
0
137
题解 | #水仙花数#
#include <iostream> using namespace std; bool isNarcissisticNumber(int num) { int hundreds = num / 100; int tens = (num % 100) / 10; ...
2024-05-22
0
154
题解 | #大小写转换#
#include <iostream> int main() { char ch; while (std::cin >> ch) { std::cout << static_cast<char>(tolower(ch)...
2024-05-22
0
132
题解 | #计算三角形的周长和面积#
#include <iostream> #include <cmath> #include <iomanip> int main() { double a, b, c; std::cin >> a >> b >>...
2024-05-22
0
156
题解 | #统计成绩#
#include <iostream> #include <iomanip> int main() { int n; std::cin >> n; double maxScore = -1.0; double minScore ...
2024-05-22
0
149
题解 | #统计成绩#
#include <iostream> #include <iomanip> int main() { int n; std::cin >> n; double maxScore = -1.0; double minScore ...
2024-05-22
0
141
题解 | #判断是不是字母#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
2024-05-22
0
140
题解 | #字典新增#
letter = input() word = input() x = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'} x[letter...
2024-05-21
0
124
题解 | #列表中第一次出现的位置#
record = input() names = record.split(' ') index = names.index('NiuNiu') print(index)
2024-05-21
0
119
题解 | #公式计算器#
formula = input() result = eval(formula) print(result)
2024-05-21
0
127
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页