摘要: 例题3-6 环状序列( Circular Sequence, ACM/ICPC Seoul 2004, UVa1584) 题目 长度为n的环状串有n种表示法, 分别为从某 个位置开始顺时针得到。 例如, 图3-4的环状串 有10种表示: CGAGTCAGCT, GAGTCAGCTC, AGTCAGC 阅读全文
posted @ 2025-02-06 20:11 bakul 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 题目 You are given integers N and K. Find the number of triples (a,b,c) of positive integers not greater than N such that a+b,b+c and c+a are all multip 阅读全文
posted @ 2025-02-06 15:41 bakul 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Hello World #include<bits/stdc++.h> /* 判断一个字符串是否是回文串,是否是镜像串 */ using namespace std; const char* rev = "A 3 HIL JM O 2TUVWXY51SE Z 8";//空格,为了确定相应位置 con 阅读全文
posted @ 2025-02-06 11:29 bakul 阅读(5) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示