![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
2018.2.19VJ新年
Parkerljc
这个作者很懒,什么都没留下…
展开
-
UVA1594水题
觉得很难来着,随便写一个模拟的打算过不了就算,结果AC了,好像数据有点水?#include<stdio.h>#include<math.h>int main(){ int t; scanf("%d",&t); while (t--) { int n,i,a[20]={0},c=0,f=0; scanf("%d",&n); for (...原创 2018-02-20 12:34:49 · 284 阅读 · 0 评论 -
POJ1745动归
根据N和K的范围开了dp[100005][100]的数组来表示DP[i][j]表示在进行了第I个数的操作后余数为J的情况是否存在顺序进行更新即可#include<stdio.h>#include<string.h>int dp[10005][105];int mod(int n,int k){ n=n%k; while (n<0) n+=k; retur...原创 2018-02-20 12:59:18 · 154 阅读 · 0 评论 -
hdu2057 A+B again
十六进制a+b#include<stdio.h>int main(){ long long a,b; while (scanf("%llX %llX",&a,&b)!=EOF) { if (b+a>=0) printf("%llX\n",b+a); else printf("-%llX\n",(-b-a)); ...原创 2018-02-20 20:04:20 · 246 阅读 · 0 评论