摘要:
题目:hdu 1143 Tri Tiling思路:dp[i]=3*dp[i-3]+2*(dp[i-4]+dp[i-6]+...+dp[2]+dp[0]);import java.math.BigDecimal;import java.math.BigInteger;import java.util.Scanner;public class Main{ public static void main(String args[]) { Scanner cin=new Scanner(System.in); long dp[]=new long[31]; ... 阅读全文
摘要:
题目:hdu 1041 Computer Transformation思路:打表,找规律#include #include #include #include #include using namespace std;string solve(string s){ string str=""; for(int i=0;i<s.size();i++) if(s[i]=='0') str+="10"; else str+="01"; return str;}int get(string s){ int ... 阅读全文