题目描述森近霖之助捡到了一台奇怪的机器。往里面塞进去两条固定长度的打孔纸带,就会吐出一条同样长度的打孔纸带。打印出来的纸带是没法放进机器里的。在经过一段时间的思索之后,霖之助发现了这台机器的输出具有一定的规律。具体而言,输出的每一位都是输入两个打孔纸带上同样位置值的“与”,“或”或者“异或”。拿着手... ...
分类:
其他好文 时间:
2020-07-12 15:03:29
阅读次数:
101
#include<iostream> using namespace std; int main () { int a; long long b,c,d; cin>>a; int n[10][3]; for(int i=0;i<a;++i){ cin>> n[i][0]>>n[i][1]>>n[i] ...
分类:
其他好文 时间:
2020-07-12 14:48:19
阅读次数:
46
题目描述输入第一行,包含两个整数 X 和 Y,表示起点和终点的标号。输出一行,包含一个数,表示两个区域之间的距离。样例输入19 30样例输出5提示保证 X; Y using namespace std;const int N=10001;int n,m,x,y,a[N];int qx,qy,hx,h... ...
分类:
其他好文 时间:
2020-07-12 14:40:26
阅读次数:
58
#include<iostream> #include<cstdio> using namespace std; int main() { int a,b; cin>>a>>b; int c; c=(b-a); if(c%100>=50) c+1; //这里错误,应先换算成正常单位在进行+1的四舍五 ...
分类:
其他好文 时间:
2020-07-12 14:32:01
阅读次数:
56
//结果部分正确 #include<iostream> using namespace std; typedef long long ll; ll px(ll a,ll b) { ll p=0; if(a%10==b) { p=p*10+b; a=a/10; } return p; } int ma ...
分类:
其他好文 时间:
2020-07-12 14:21:44
阅读次数:
52
欢迎来到zealer 曼德勃罗 #include< cstdio >; using namespace std; int main(){ ? return 0; } ...
分类:
其他好文 时间:
2020-07-12 12:15:15
阅读次数:
53
如何在输入输出上提高一下效率emmmm 1 #include<iostream> 2 #include<stdio.h> 3 #include<stdlib.h> 4 #include<time.h> 5 using namespace std; 6 7 int main(){ 8 int star ...
分类:
移动开发 时间:
2020-07-12 12:12:53
阅读次数:
67
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=13 TaskDialog任务对话框 任务对话框的控件 任务对话框 任务对话框执行结果 实例练习一 using System; using System.Collections.Generic; u ...
错误答案1:#include<iostream> using namespace std; const int maxn=100000; int a[maxn]={0}; int main(){ int n,id,sco,k,j; cin>>n; for(int i=0;i<n;i++){ a[id ...
分类:
其他好文 时间:
2020-07-12 00:49:05
阅读次数:
69
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=14 Ribbon菜单 创建控件(按钮等) Ribbon菜单实例练习 using System; using System.Collections.Generic; using System.Lin ...