- 博客(7)
- 收藏
- 关注
原创 Mayo案
“Phenomena of nature, though just discovered, mental processes, and abstract intellectual concepts are not patentable, as they are the basic tools of scientific and technological work.” And monopoliz...
2020-02-27 08:47:46
566
原创 UVa11809(算法竞赛入门经典习题3-12)
被精度折磨。首先先上一个wa的代码。#include<iostream> #include <stdio.h> #include <string.h> #include <bits/stdc++.h> using namespace std; int trans(int a) { int n=0; while(a!=0) ...
2018-04-16 21:06:22
482
原创 UVa10340题解(算法竞赛入门经典习题3-9)
#include<iostream> #include <stdio.h> #include <string.h> using namespace std; int main( ) { char s[500005],t[500005]; while (~scanf("%s%s", s, t)) { int index=0...
2018-04-16 13:10:36
240
原创 UVa232题解(算法竞赛入门经典习题3-6)
#include<iostream> #include<stdio.h> #include<string.h> using namespace std; int tag[12][12]; char word[12][12]; bool flag[12][12]; int r,c,num; int cas=0; int main() { while(scan...
2018-04-14 13:56:10
369
原创 UVa227题解(算法竞赛入门经典习题3-5)
#include<iostream> #include<stdio.h> #include<string.h> using namespace std; int main() { char puzzle[6][6]; int line=0,row=0; int cas=0; while(1) { line=0; ro...
2018-04-13 12:31:11
402
原创 习题3-3(UVa1225)题解与比较
自己的代码:#include<iostream> #include<stdio.h> #include<string.h> using namespace std; void trans(int ans[],int digit) { while(digit!=0) { ans[digit%10]++; digit...
2018-04-12 16:26:08
249
原创 HDU1003
咸鱼楼终于开始刷oj了,这个博客就当存题解了。 #include using namespace std; int main() { int n,N,i,j,dp,temp1; int ct=0; int a[100001]; cin>>N; while(N>0) { cin>>n; for(int k=0;
2018-01-25 19:40:42
267
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅