题解列表
2839: 石头剪刀布
摘要:参考代码:def generate(x, y):
flag = True
while flag:
for i in range(len(x)):
&nb
2840: 向量点积计算
摘要:参考代码:n = int(input())
arrA = list(map(int, input().split()))
arrB = list(map(int, input().split())……
2841: 大整数加法
摘要:参考代码:x = int(input())
y = int(input())
print(x + y)……
2842: 大整数减法
摘要:参考代码:x = int(input())
y = int(input())
print(x - y)……
2843: 计算2的N次方
摘要:解题思路: 注意事项:参考代码:print(2 ** int(input()))……
2844: 大整数的因子
摘要:参考代码:c = int(input())
s = ''
for k in range(2, 10):
if c % k == 0:
s += str(……
2845: 求10000以内n的阶乘
摘要:参考代码:n = int(input())
sum = 1
for i in range(1, n+1):
sum *= i
print(sum)……
自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[4]; scanf("%s",a); i……