资源列表
[其他小程序] delete-character
说明:sicily1510.给定一个80以内的字符串和需要删除的字符的位置,输出删除结果。是c程序。 -Descr iption Misspelling is an art form that students seem to excel at. Write a program that removes the n th character from an input string. Input The first line of input contains a single int<emma> 在 2025-06-16 上传 | 大小:1kb | 下载:0
[其他小程序] random-number
说明:生成一个N个1到1000之间的随机整数(N≤100),对于其中重复的数字,只保留一个,把其余相同的数去掉,然后再把这些数从小到大排序。 Producing random numbers,for the repeated number, only one of them can be reserved.Then, sort them.-Producing random numbers,for the repeated number, only one of them can be reserv<emma> 在 2025-06-16 上传 | 大小:1kb | 下载:0
[其他小程序] delete-circle
说明:n对夫妻站成一个圈,若夫妻相邻,则将他们摘除,直到所有人都被摘除或摘到不能继续。给出圈的原始状态,问可否将圈全部清空。 -N couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not always stand together. We remove the couples who stand together until the circle<emma> 在 2025-06-16 上传 | 大小:1kb | 下载:0
[其他小程序] square-free
说明:sicily1776.给一个正整数,给出此正整数中是否包含n平方作为因子,结果输出为n。 -A non-negative integer is called a Square Number, if it could be written as n^2, where n is an integer. A non-negative integer is called a Square Free Number, if it has no factor, except 1, which i<emma> 在 2025-06-16 上传 | 大小:1kb | 下载:0
[其他小程序] shujujiegou
说明:用堆栈判断输入的一串括号左右是否对齐,若不对齐,则判断是那边的括号多了-Judgment entered by the stack is aligned around a bunch of brackets, if not justified, it is judged that there is much in parentheses<廖兴瑞> 在 2025-06-16 上传 | 大小:1kb | 下载:0
[其他小程序] 2
说明:1)定义一个长度为10的int数组nArr,采用给定初始值或从键盘输入的方式给数组的10个元素赋值;定义一个int *型指针变量pInt,并将nArr的首地址存入pInt中; 2)功能1:将从键盘输入的0..9间两个数存入i, j,交换下标为i, j的两个数组元素中存放的内容,并输出交换前与交换后的结果; 3)功能2:通过指针间接运算,重新交换数组元素i, j中的内容,并输出交换后的内容。 4)功能3:以8位16进制数的形式输出pInt,pInt + i, pInt + j的值,并<smiliy777> 在 2025-06-16 上传 | 大小:1kb | 下载:0