02 2020 档案
摘要:自测-1 打印沙漏 (20分) https://pintia.cn/problem-sets/17/problems/260 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 us
阅读全文
摘要:Codeforces Round #611 (Div. 3) 题意:给定的一维数组中,每i个元素为f(i),f(i)有两种取值,若f(i)为0,表示第i人不知道将礼物给谁,若f(i)>=1&&f(i)<=n表示第i人将礼物送给第f(i)人,要注意题目规定每个人只能收一件礼物也只能发一件礼物给别人,而
阅读全文
摘要:Codeforces Round #610 (Div. 2) https://codeforces.com/problemset/problem/1282/B1 题意:购买商品简单版:Vasya想用钱买尽可能多的商品数,这里k为2,即允许任意买的两件商品中只为其中较贵的商品付款,而且这种机会在每种情
阅读全文
摘要:Codeforces Round #607 (Div. 2) https://codeforces.com/problemset/problem/1281/B 题意:每个测试用例给定两个字符串chr1,chr2,若按字典序排序前者小于后者则直接输出chr1,否则对chr1字符数组最多交换一对字符,若
阅读全文
摘要:1050 螺旋矩阵 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805275146436608 https://paste.ubuntu.com/p/Dn7fQ9Gf73/ #include <cstdio>
阅读全文
摘要:1095 解码PAT准考证 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/1071786104348536832 题目大意:给出一组学生的准考证号和成绩,准考证号包含了等级(乙甲顶),考场号,日期,和个人编号信息,并
阅读全文
摘要:1034 有理数四则运算 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805287624491008 本题代码: #include <iostream> #include <cmath> #include <
阅读全文
摘要:1084 外观数列 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805260583813120 #include <iostream> #include <cstdio> #include <cmath> #
阅读全文
摘要:1044 火星数字 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805279328157696 #include <iostream> #include <cstdio> #include <cstring>
阅读全文
摘要:1020 月饼 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 #include <iostream> #include <cstdio> #include <cstring> #
阅读全文
摘要:1015 德才论 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805307551629312 #include <iostream> #include <cstring> #include <string>
阅读全文
摘要:1014 福尔摩斯的约会 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805308755394560 英文字母转换成数字类型: 代码: #include <iostream> #include <cstdio
阅读全文
摘要:1013 数素数 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805309963354112 #include <iostream> #include <cstdio> #include <cstring>
阅读全文
摘要:1012 数字分类 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805311146147840 四舍五入保留小数点后一位: double Scale_4(double argu) { return floor
阅读全文
摘要:1010 一元多项式求导 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805313708867584 #include <iostream> #include <cstdio> #include <cstri
阅读全文
摘要:assume cs:codesg,ds:datasg datasg segment db 'BaSiC' db 'iNfOrMaTiOn' datasg ends codesg segment start: mov ax,datasg mov ds,ax ;设置ds指向datasg段 mov bx,
阅读全文
摘要:一个文本编辑过程中,就包含着按照ASCLL编码规则进行的编码和解码。在文本编辑过程中,我们按一下键盘的a键,就会在屏幕上看到'a'.这是一个怎样的过程呢?我们按下键盘的a键,这个按键的信息被送入计算机,计算机用ASCLL码的规则对其进行编码,将其转化成61H存储在内存的指定空间中;文本编辑软件从内存
阅读全文
摘要:思路:将暂存的外层循环次数数据放到内存单元中,需要使用的时候再从内存单元中恢复;一般来说,在需要暂存数据的时候,我们应该使用栈。 assume cs:codesg,ds:datasg,ss:stacksg datasg segment db 'ibm ' db 'dec ' db 'dos ' db
阅读全文
摘要:assume cs:codesg,ds:datasg datasg segment db '1. file ' db '2. edit ' db '3. search ' db '4. view ' db '5. options ' db '6. help ' datasg ends codesg
阅读全文
摘要:1019 数字黑洞 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805302786899968 #include <iostream> #include <cstdio> #include <cstring>
阅读全文
摘要:1018 锤子剪刀布 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805304020025344 #include <iostream> #include <cstdio> #include <cstring
阅读全文
摘要:1024 科学计数法 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805297229447168 #include <iostream> #include <cstdio> #include <cstring
阅读全文
摘要:方法一: assume cs:codesg,ds:datasg datasg segment db 'welcome to masm!' db '................' datasg ends codesg segment start: mov ax,datasg mov ds,ax m
阅读全文

浙公网安备 33010602011771号