https://codeforces.com/problemset/problem/266/A int solve() { int n, c = 0; char cc, prev = 0; cin>>n; while(n--){ scanf("%c",&cc); if (cc == prev) c++; prev = cc; }
return c;
}
# | User | Rating |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 161 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 151 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
https://codeforces.com/problemset/problem/266/A int solve() { int n, c = 0; char cc, prev = 0; cin>>n; while(n--){ scanf("%c",&cc); if (cc == prev) c++; prev = cc; }
return c;
}
using namespace std;
using ll = long long; const int INF = 1e9 + 5;
template void inp( T &n ) { n=0; char ch=getcx(); T sign=1; while( ch < '0' || ch > '9' ) { if(ch=='-') { sign=-1; } ch=getcx(); } while( ch >= '0' && ch <= '9' ){ n = (n<<3)+(n<<1) + ch-'0', ch=getcx(); } n=n*sign; }
int solve() { return 0; }
int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout<<solve()<<endl; return 0; }
“So, boy. You wish to serve me?” Silhouetted against the blue-black sky, the horse-mounted samurai with the horned helmet towered over me like a demon as I knelt in the dirt before him. I could not see his face but there was no mistaking the authority in his growling tone, nor the hint of mockery in his question. I tried to speak and managed only a faint croak. My mouth had gone dry, as parched as a man dying of thirst. But I had to respond. My fate-and though I didn’t know it then, the fate of all of Japan-rested on my answer. Raising my head just enough to brave a glance at the demonic figure, I saw him staring at me, like a hawk poised to seize a mouse in its talons. When I managed to speak, my voice was clear and steady, and I drew courage with each syllable. “That’s correct, Lord Nobunaga,” I said. “I do.”
Name |
---|