Cuibaby

Cuibaby : 3072. 小巴菲特买股票
4 年,8 月前

//dp[i][j]表示第i天买第j天卖掉 include using namespace std; int main() { int t; cin>>t; int Max = 600; // int dp[Max][Max]; int a[Max]; for(int i = 0; i < t; i++) { int n; cin>>n; for ( int j = 0 ...查看全文
Cuibaby : 3134. 短信激活码
4 年,8 月前

include include using namespace std; int main() { int t; cin>>t; for(int i = 0; i < t; i++) { char a,b,c,d,e; cin>>a>>b>>c>>d>>e; long long sum = ( a- '0' )* 10000 +( c- '0' )* 1000 +( e- '0' )* 100 ...查看全文