04 2021 档案

摘要:#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x,y; while(scanf("%d %d",&x,&y)!=EOF){ scanf("%s",s); int ans=0; int len=str 阅读全文
posted @ 2021-04-03 13:43 suehoo 阅读(111) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x; scanf("%s%d",&s,&x); int ans=0; int len =strlen(s); for(int i=0;i<len;i++ 阅读全文
posted @ 2021-04-03 13:38 suehoo 阅读(301) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> int main(){ char s[105]; scanf("%s",&s);//输入二进制字符串 int ans=0; int len=strlen(s); for(int i=0;i<len;i++){ ans=ans*2+(s[i]-'0'); 阅读全文
posted @ 2021-04-03 13:31 suehoo 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> int main(){ int n,x; char s[105]; scanf("%d%d",&n,&x); int cnt=0; while(n>0){ int w=(n%x); if(w<10) s[cnt++]=w+'0';//变成字符需要加'0 阅读全文
posted @ 2021-04-03 13:20 suehoo 阅读(252) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h>//十进制转x进制(x<10) using namespace std; int main(){ int n,x; int s[105]; scanf("%d%d",&n,&x); int cnt=0;//数组下标 while(n>0){ int w=n 阅读全文
posted @ 2021-04-03 13:03 suehoo 阅读(83) 评论(0) 推荐(0) 编辑
摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n; scanf("%d",&n); int ans=0; while(n>0){ ans*=10; ans=ans+(n%10); n/=10; } printf("%d",a 阅读全文
posted @ 2021-04-03 12:53 suehoo 阅读(179) 评论(0) 推荐(0) 编辑
摘要:题目描述 Time Limit: 1000 ms Memory Limit: 256 mb 小 A 同学现在被困在了一个迷宫里面,他很想从迷宫中走出来,他可以 向上、向下、向左、向右移动、每移动一格都需要花费 1 秒的时间,不能够走到 边界之外。假设小 A 现在的位置在 S,迷宫的出口在 E,迷宫可 阅读全文
posted @ 2021-04-02 18:43 suehoo 阅读(58) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题