2015年2月23日

UVa-1587 - Box

摘要: 写的有点丑,主要是想把一个类似于边长1,2,3的长方体的6*2的数组转换成这样: 1 2 1 2 ... 阅读全文

posted @ 2015-02-23 18:08 windrises 阅读(159) 评论(0) 推荐(0) 编辑

UVa-10340 - All in All

摘要: #include#includeusing namespace std;int main(){ string a,b; while(cin>>a>>b) { int la=a.size(),lb=b.size(),i,j; bool flag=1; ... 阅读全文

posted @ 2015-02-23 18:03 windrises 阅读(127) 评论(0) 推荐(0) 编辑

UVa-202 - Repeating Decimals

摘要: #include#include#includeusing namespace std;int main(){ int n,m; while(cin>>n>>m) { int a=n/m,b=n%m; int ans[5000]={a},cnt=0; ... 阅读全文

posted @ 2015-02-23 18:03 windrises 阅读(106) 评论(0) 推荐(0) 编辑

UVa-1368 - DNA Consensus String

摘要: #include#include#includeusing namespace std;int main(){ //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); int n; cin>>n; ... 阅读全文

posted @ 2015-02-23 18:02 windrises 阅读(125) 评论(0) 推荐(0) 编辑

导航