摘要: include include using namespace std; struct People{ int id; string name; char sex; int year; }; int main(){ People people[10]; for(int i=0;i<10;i++){ 阅读全文
posted @ 2025-10-19 15:59 Cx330。 阅读(2) 评论(0) 推荐(0)
摘要: include include using namespace std; struct Student{ int id; string name; int score; }; int main(){ Student student[100]; int n=0; while(cin>>student[ 阅读全文
posted @ 2025-10-19 15:58 Cx330。 阅读(2) 评论(0) 推荐(0)
摘要: List Merge(List l1,List l2){ PtrToNode dummy=(PtrToNode)malloc(sizeof(struct Node)); dummy->Next=null; PtrToNode tail=dummy; PtrToNode tail=dummy; Ptr 阅读全文
posted @ 2025-10-19 15:57 Cx330。 阅读(0) 评论(0) 推荐(0)
摘要: void ListInput(SqList &L){ ElemType x; L.length=0; while(cin>>x&&x!=-1){ if(L.length>=MAXSIZE){ cout<<"顺序表已满,无法继续输入!"<<endl; break; } L.elem[L.length+ 阅读全文
posted @ 2025-10-19 15:57 Cx330。 阅读(1) 评论(0) 推荐(0)
摘要: class Solution { public ListNode reverseList(ListNode head) { if(headnull||head.nextnull){ return head; } ListNode newhead=reverseList(head.next); hea 阅读全文
posted @ 2025-10-14 00:02 Cx330。 阅读(1) 评论(0) 推荐(0)
摘要: class Solution { public ListNode partition(ListNode head, int x) { ListNode small = new ListNode(0); ListNode smallHead = small; ListNode large = new 阅读全文
posted @ 2025-10-14 00:02 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: import java.util.*; import java.util.concurrent.TimeUnit; public class ArithmeticPractice { private Set generatedQuestions = new HashSet<>(); private 阅读全文
posted @ 2025-10-14 00:01 Cx330。 阅读(4) 评论(0) 推荐(0)
摘要: import java.util.Random; import java.util.Scanner; public class RandomExample { public static void main(String[] args) { int count=0; for(int i=0;i<30 阅读全文
posted @ 2025-10-07 14:34 Cx330。 阅读(3) 评论(0) 推荐(0)
摘要: 今天是9.25,今天是星期四,今天上午上了一节数据结构和一节跆拳道课,跆拳道课上学了好多动作,还教我们劈叉,锻炼我们的韧带。下午就没有课程安排了,中午和朋友打了一会儿游戏,然后睡了一觉,醒来之后,去教室学了两个小时英语,背了好多单词 ,晚上又参加了我们国旗护卫队的训练,进行了大量的体能训练,一直到晚 阅读全文
posted @ 2025-09-25 22:21 Cx330。 阅读(14) 评论(0) 推荐(0)
摘要: 今天是9.24,今天星期三,今天早上轮到我升国旗了,身为右护,负责扬旗的重任。上午上了一节离散数学,又上了一节马克思主义课, 。到了下午,午休了一会儿,起来后背着书包去教室自习了,为了更好的跟上JAVA的进度,自己又敲了好几行代码,然后写了一下离散数学的作业,为了备战四级,又听了一会儿英语课,背了一 阅读全文
posted @ 2025-09-24 23:04 Cx330。 阅读(16) 评论(0) 推荐(0)