摘要: 1398:短信计费 时间限制: 1000 ms 内存限制: 65536 KB提交数: 42387 通过数: 19967 【题目描述】 用手机发短信,一条短信资费为0.1元,但限定一条短信的内容在70个字以内(包括70个字)。如果你一次所发送的短信超过了70个字,则会按照每70个字一条短信的限制把它分 阅读全文
posted @ 2023-02-03 17:47 王ys 阅读(727) 评论(0) 推荐(0)
摘要: 1154:亲和数 时间限制: 1000 ms 内存限制: 65536 KB提交数: 41239 通过数: 24946 【题目描述】 自然数a的因子是指能整除a的所有自然数,但不含a本身。例如12的因子为:1,2,3,4,6。若自然数a的因子之和为b,而且b的因子之和又等于a,则称a,b为一对“亲和数 阅读全文
posted @ 2023-01-31 17:58 王ys 阅读(411) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" using namespace std; int x=225,y=115,z=23; TxMinecraft mc; void TNT(){ mc.fillBlocks(x+0,y+4,z+3,x+2,y+6,z+ 阅读全文
posted @ 2023-01-11 17:29 王ys 阅读(46) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>网址</title> </head> <body> <h1>网址</h1> <a href="https://www.baidu.com">百度</a> <a href="http 阅读全文
posted @ 2022-11-26 19:36 王ys 阅读(809) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { int n1=1,n2=1; for(int a=0;a<9;a++){ n1=1; for(int i=0;i<n2;i++){ cout<<n1< 阅读全文
posted @ 2022-11-25 18:41 王ys 阅读(22) 评论(0) 推荐(0)
摘要: #include <iostream> #include "minecraft.h" #include <windows.h> using namespace std; TxMinecraft mc; int x=-256,y=150,z=223; void xin(int id,int data, 阅读全文
posted @ 2022-11-19 19:41 王ys 阅读(24) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> using namespace std; int main(int argc, char** argv) { string str="a:=3;b:=4;c:=5;"; string a; int m=str.find("; 阅读全文
posted @ 2022-10-29 20:19 王ys 阅读(17) 评论(0) 推荐(0)
摘要: #include <iostream> #include <string> #include <cstdlib> using namespace std; bool findName(int subindex,string substring,string *name){ subindex=subs 阅读全文
posted @ 2022-10-04 10:10 王ys 阅读(16) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 12:57 王ys 阅读(66) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-10-02 12:56 王ys 阅读(54) 评论(0) 推荐(0)