随笔分类 - 紫书,练习题.
摘要:A number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first visits a non-ter
阅读全文
摘要:A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 small squares of equal size. A unique letter of the alph
阅读全文
摘要:UVA - 455 Periodic Strings Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu Description Periodic Strings A character string is sa
阅读全文
摘要:#include<cstdio> #include<string> #include<vector> #include<iostream> using namespace std; int main() { vector<int> a; int i,b; for(i=0;i<56;i++) a.pu
阅读全文
摘要:题目:给你n个方块,有四种操作: 1.move a onto b,把a和b上面的方块都放回原来位置,然后把a放到b上面; 2.move a over b,把a上面的放回原处,然后把a放在b所在的方块堆的上面; 3.pile a onto b,把b上面的放回原来位置,然后把a和a上面的方块整体放到b上
阅读全文
摘要:Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles
阅读全文
摘要:Digit Counting Time Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %llu Submit Status Description Download as PDF Trung is bored with his
阅读全文
摘要:简单的化学式 求分子量问题 下面附上 代码和解析. 1 #include<stdio.h> 2 #include<algorithm> 3 #include<string.h> 4 #include<math.h> 5 using namespace std ; 6 int main() 7 { 8
阅读全文
摘要:There is an objective test result such as ``OOXXOXXOOO". An `O' means a correct answer of a problem and an `X' means a wrong answer. The score of each
阅读全文
摘要:1:移位运算符#includeint main(){ printf("%d ",18>>1); // 移位运算符 也就是 乘以2^? 后面的 是 进位 的 位数. printf("%d ",18<<1); // 除以2...
阅读全文
摘要:以后 你们可以叫我 袁大婶 没错 就是这么猛.------下面附上 我的代码/*给一个长度为n的DNA环状串,请你输出字典序最小的 那个 序列*//*你怎么想? 不开字符串 尽量减少时间空间复杂度 打败 刘大婶*//* 用两个标记变量 一个字母 然后比较 大小 ...
阅读全文
摘要:开始吧.
阅读全文
摘要:1 #include 2 #include 3 #define maxn 100005 4 int ans[maxn]; //类似于 比较大的数组还是开导外面比较好一点,防止报错. 5 int main() 6 { 7 int x,y,m,T,n; 8 mems...
阅读全文
摘要:下面先附上我的水货代码,,,,一会附上,,,刘大婶给的代码///////3ms#include#includeint main(){ int A,B,W=0,t,n,m,i,j,q,a[1111],b[1111],c[1111]; while(scanf("%d",&t),t) {...
阅读全文
摘要:刘大婶说这个比较难,哈哈,我感觉自己写的代码还是比较简单的.#include#include#includeint is_palindrome(char x[],int n);//用于判断是否回文 //如果回文的话,返回值为1,反之为0int is_mirrored(char x[],int n)...
阅读全文
摘要://题目的意思就是-----键盘上面你输入一个字符,就要输出该字符左边的字符.//空格和回车原样输出.#includeint main(){ char a[]={"`1234567890-=QWERTYUIOP[]ASDFGHJKL;'\ZXCVBNM,./"},b; int n,i; ...
阅读全文
摘要:TEX QuotesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 9698 Accepted: 5085DescriptionTEX is a typesetting language develope...
阅读全文

浙公网安备 33010602011771号