佛奴儿
佛奴儿
全部文章
分类
未归档(985)
归档
标签
去牛客网
登录
/
注册
Roni
ACMer
TA的专栏
0篇文章
0人订阅
职场那些事儿
0篇文章
0人学习
全部文章
(共985篇)
紫书 习题3-1 得分(字符串)
1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 char s[100]; 6 scanf("%s",s); 7 int sum=0; 8 ...
2017-07-17
0
394
未解之谜
如何判断数组元素全为0就跳出循环?紫书说:正常的猜测序列不会有0,所以只判断第一个数是否为0即可。(什么鬼??) 不同的数组要设置不同的计数器i,j吗?(比如a[i],b[j])紫书:是的 for(;;) 等价 while(1)吗? wait i和n-i-1 与 (i+ans)%n 表示...
2017-07-17
0
452
HDU 1018 Big Number(数论,Stirling公式)
1. 利用数学公式lg(n!)=lg(2)+lg(3)+....+lg(n) 求解 2.
2017-07-17
0
358
HDU 1029 Ignatius and the Princess IV(数论)
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(~scanf("%d",&n)){ int x,ans,cnt = 0; ...
2017-07-17
0
476
HDU 1017 A Mathematical Curiosity (输出格式,穷举)
#include<stdio.h> int main() { int N; int n,m; int a,b; int cas; scanf("%d",&N); while(N--) { ...
2017-07-17
0
463
紫书 习题2-6 排列
1 #include <stdio.h> 2 #include <string.h> 3 4 int main() 5 { 6 int i, count = 0, j, k, a[10], c;//用i表示abc,j表示def,k表示ghi 7 ...
2017-07-16
0
459
紫书 习题2-5 分数化小数
1 #include<stdio.h> //基础版 2 #define MAX 110 3 4 int main(void) 5 { 6 int a, b, c; 7 scanf("%d %d %d",&a,&b,&...
2017-07-16
0
468
紫书 习题2-4 子序列的和
1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 using namespace std; 5 main() 6 { 7 long long n,m,c,i;//相乘可...
2017-07-16
0
463
紫书 习题2-3 倒三角形
#include<iostream> #include<cstdio> #include<cstring> using namespace std; main() { int n,i,j; scanf("%d",&n)...
2017-07-16
0
378
HDU 1013 Digital Roots(字符串,大数,九余数定理)
Digital Roots Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 79180 Accepted Submission(s)...
2017-07-16
0
419
首页
上一页
90
91
92
93
94
95
96
97
98
99
下一页
末页