题解列表

筛选

编写题解 1231: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include "stdio.h" int main() {   int n, i, j;   int a[30][30];   while (scanf("%……

c语言解决机器人繁殖

摘要:解题思路:x为初始机器人数量,n为经过的年数,s为机器人总数。分别列出每年复制出的机器人和总数!每年出生为 前一年出生的两倍减去飞向太空的一个。第一年出生:2x-1  第二年出生:2(第一年出生)-1……

回文串-字符串处理(C++)

摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256;   //判断字符串str是否是“回文串”bool judge(char str[……

贪心+大数取余

摘要:解题思路:注意事项:参考代码:import osimport sys# 请在此输入您的代码"""了解进制的规律,需要注意A>=B"""# 输入数据n=eval(input())ma=eval(inpu……

利用scanf的特性

摘要:解题思路:注意事项:注意最后一个单词有 . 号参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1000][500]; int ……

1480: 模拟计算器

摘要:解题思路:注意事项:参考代码:while True:    try:        a, b, c = map(str, input().split())        if (c == &#39;+……