杨辉三角
ZCY19990813
不断丰富自己,变得有底气!
展开
-
Little Sub and Pascal's Triangle
Little Sub is about to take a math exam at school. As he is very confident, he believes there is no need for a review. Little Sub's father, Mr.Potato, is nervous about Little Sub's attitude, s...原创 2019-01-19 13:54:03 · 955 阅读 · 0 评论 -
杨辉三角(presentation error)
打印杨辉三角前n行Sample Input6Sample Output11 11 2 11 3 3 11 4 6 4 11 5 10 10 5 1#include <stdio.h>int main(){ int i,j,s=0,k,n,e; while(scanf("%d",&n)!=EOF) { for(i=1...原创 2018-03-27 15:19:55 · 221 阅读 · 3 评论 -
I Count the Even Integers (ICPC Asia HongKong 2017)杨辉三角
题目链接input4812output41642题意:输出杨辉三角前n行所有偶数的个数。从两个1那一行开始计数。数据量超大,10的50次方,所以用JAVA处理大数。首先输出一下杨辉三角找规律#include <algorithm>#include <iostream>#include <cmath>#include &...原创 2019-08-03 09:43:15 · 262 阅读 · 0 评论