无法提供摘要。这是一篇受保护的文章。
Browsing category Uncategorized
数字游戏 简单的字符串操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include<bits/stdc++.h> using namespace std; #define LL long long #define inf 0x3fffffff char s[100]; int main() { scanf("%s",s+1); int ans=0; for (int i=1;i<=8;i++) if (s[i]) ans++; printf("%d\n",ans); return 0; } |
公交换乘 按照题
A.Game 考虑所有空的格子排成一串,相邻两个空的格之间设为一级台阶(从左到右逐级降低),这级台阶上的石子数