0 点赞 评论 收藏
分享
0 点赞 评论 收藏
分享
侃YE西:楼主 在s[i] == 2 的情况下是不是应该为 dp[i][0][1] += dp[i - 1][1][0] 在i-1的状态下 i-1的后一位也就是当前位 应该为0 左右都没有 我试了一发发现0/1都过了
0 点赞 评论 收藏
分享
肖战公关团队:Hacking attempt protocol Solution verdict: WRONG_ANSWER Checker: wrong answer expected 1000000000, found 99999 Code: #include<bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
freopen("test.in", "w", stdout);
cout << 100000 << '\n';
for(int i = 0; i < 99999; i++) {
cout << 1 << ' ' << 100000 << '\n';
}
cout << 1000000000 << ' ' << 1 << '\n';
}
0 点赞 评论 收藏
分享
0 点赞 评论 收藏
分享
0 点赞 评论 收藏
分享
创作者周榜
更多
关注他的用户也关注了: