![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
文章平均质量分 66
fairycao
这个作者很懒,什么都没留下…
展开
-
CycleLength
针对这个ACM的题http://acm.uva.es/p/v1/100.html编写如下代码:#include#include#include#includeusing namespace std;int CycleLength(int i,int j){ //cin>>i; //cin>>j; int CycleLength = 0; map Cycle; map::iterat原创 2009-10-26 17:36:00 · 586 阅读 · 3 评论 -
ACM题-simple equation
针对这个ACM题目http://uva.onlinejudge.org/external/115/11565.html代码如下:#includeusing namespace std;int main(){ int N,A,B,C; int x,y,z; cin>>N; do { S: cin>>A>>B>>C; for(int j = 1;j { for(int k原创 2009-10-29 14:35:00 · 524 阅读 · 4 评论 -
Parentheses Balance
ACM题http://online-judge.uva.es/problemset/v6/673.html解答如下:#include#include#include#includetypedef struct StaKey{ int flag; char str;}StaKey;int main(){ using namespace std; int count; scanf原创 2009-11-23 11:55:00 · 654 阅读 · 2 评论 -
Matrix Chain Multiplication
ACM题http://uva.onlinejudge.org/external/4/442.html #include#include#include#include#include #include using namespace std;typedef struct Matrixs{ char name; int row; int column;}MATRIXS;int main(){原创 2009-11-25 17:59:00 · 601 阅读 · 1 评论 -
ACM题-Self Numbers
ACM题http://online-judge.uva.es/p/v6/640.html解答如下:#includeusing namespace std;int main(){ int i,j; int valid; for(i = 1;i { valid = 1; for(j = i;valid; --j) { if(j+(j/10)+(j%10) == i) {原创 2009-12-01 17:59:00 · 629 阅读 · 1 评论