随笔分类 -  模拟

1583. 统计不开心的朋友 力扣(中等) 模拟,思考一下
摘要:1583. 统计不开心的朋友 给你一份 n 位朋友的亲近程度列表,其中 n 总是 偶数 。 对每位朋友 i,preferences[i] 包含一份 按亲近程度从高到低排列 的朋友列表。换句话说,排在列表前面的朋友与 i 的亲近程度比排在列表后面的朋友更高。每个列表中的朋友均以 0 到 n-1 之间的 阅读全文

posted @ 2021-08-14 17:30 Yxter 阅读(40) 评论(0) 推荐(0)

hdu 6113 度度熊的01世界(结构体的赋值问题)
摘要:题目大意: 输入n*m的字符串矩形,判断里面的图形是1还是0,还是什么都不是 注意:结构体中放赋值函数,结构体仍旧能定义的写法 阅读全文

posted @ 2017-08-15 10:10 Yxter 阅读(163) 评论(0) 推荐(0)

一元多项式的乘法与加法运算
摘要:一元多项式的乘法与加法运算 设计函数分别求两个一元多项式的乘积与和。 输入格式: 输入分2行,每行分别先给出多项式非零项的个数,再以指数递降方式输入一个多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。 输出格式: 输出分2行,分别以指数递降方式输出乘积多项式以及和多项式非 阅读全文

posted @ 2017-03-10 15:34 Yxter 阅读(248) 评论(0) 推荐(0)

ZOJ 2971 Give Me the Number (模拟,字符数组的清空+map)
摘要:Numbers in English are written down in the following way (only numbers less than 109 are considered). Number abc,def,ghi is written as "[abc] million  阅读全文

posted @ 2017-02-16 17:21 Yxter 阅读(380) 评论(0) 推荐(0)

ZOJ 3490 String Successor(字符串处理)
摘要:The successor to a string can be calculated by applying the following rules: Ignore the nonalphanumerics unless there are no alphanumerics, in this ca 阅读全文

posted @ 2017-02-10 15:23 Yxter 阅读(367) 评论(0) 推荐(0)

POJ 3087 Shuffle'm Up
摘要:Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 3087 Submit Status Practice POJ 3087 Description A commo 阅读全文

posted @ 2016-08-28 14:55 Yxter 阅读(115) 评论(0) 推荐(0)

POJ 1835 宇航员
摘要:Time Limit:2000MS Memory Limit:30000KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 1835 Submit Status Practice POJ 1835 Description 问题描述: 宇 阅读全文

posted @ 2016-08-28 14:51 Yxter 阅读(472) 评论(0) 推荐(0)

导航