![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SJTU
文章平均质量分 81
sjtutyx
大家好~我是一直乐观积极向上天下无敌宇宙第一帅的糖小新~~
展开
-
sjtu-acm-1033
想了想,似乎有必要把自己刷OJ的历程记录下来。 不光光是为了总结报告和以后积累经验。 http://acm.sjtu.edu.cn/OnlineJudge/ 上海交大的OJ网址。 -----------------------------------------------------------------------------我是华丽的分割线-------------------原创 2015-10-03 16:28:28 · 1036 阅读 · 0 评论 -
sjtu-acm-1224
1224 Description 现在给出A,B,C,D四个集合,每个集合中元素的个数n都是相同的,现在从每个集合中任取出一个数,记为a,b,c,d,现在要求统计有多少组不同的(a,b,c,d)使得a+b+c+d=0。 Input Format 第一行为各集合中元素的个数n; 第二行到第n+1行,每行有4个数字,依次为A,B,C,D中的一个元素。 Output Fo原创 2015-11-21 23:31:57 · 689 阅读 · 0 评论 -
Test of scanf and printf
//This is the process during the learning of C // And I write several test samples to test the function of scanf and printf #include #include #define C "C Programming" int main(void) { /* int a=原创 2015-11-28 21:16:41 · 327 阅读 · 0 评论 -
Sprintf--powerful function
选自《CSDN 社区电子杂志——C/C++杂志》 http://emag.csdn.net 2005 年1 月 总第1 期 - 93 - 本文作者:steedhorse(晨星) printf 可能是许多程序员在开始学习C 语言时接触到的第二个函数(我猜第一个是main),说 起来,自然是老朋友了,可是,你对这个老朋友了解多吗?你对它的那个孪生兄弟sprintf 了解多 吗?在将各种类型的原创 2015-11-28 21:37:51 · 287 阅读 · 0 评论 -
TA lessons about the input and the output
We should pay enough attention to the significance of the input and output when we can coding, So, in the following, I will list some sort of the input functions. 1.Scanf ()and Cin>> It is said tha原创 2015-11-29 11:35:32 · 219 阅读 · 0 评论 -
scanf-printf-simple note
printf: %[signal] [width] [.precision] [length]type signal: + - whitespace # width : Right margin and fill with the whitespace(also with practical use) .precision: cut out the numb原创 2015-11-28 20:38:31 · 214 阅读 · 0 评论 -
SJTU-ACM-1528
1528. 小天狼星的访问 Description 经过数月的准备,小天狼星,一个被诬陷的杀人犯,准备闯入霍格沃茨见见他的侄子。霍格沃茨的地图呈一颗树状分布。每个房间由若干跳过道通向其他房间。由于小天狼星想尽快找到哈利: 他会从房间0开始找 他总是会选择离自己最近的房间找,如果仍有多个房间,从序号最小的开始找。 如果没找到,则继续选最近的房间深入。 如果原创 2015-11-29 15:38:50 · 356 阅读 · 0 评论 -
SJTU-ACM-1530
1530. 字符二叉树 Description Stephen最近学习了二叉树的有关内容,他创造了一种树“字符二叉树”。字符二叉树是这样的: 该二叉树是完全二叉树。每个节点下面有0~2个孩子。 为了简单化,我们按照层序方式插入。比如说:HEADSHOT,H作为根节点,EA作为H的两个孩子结点。而DS作为E的孩子,HO作为A的孩子。T是D的左孩子。 Stephen想向TX们原创 2015-11-29 15:43:26 · 558 阅读 · 0 评论