ninja12345's blog

By ninja12345, history, 3 years ago, In English

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;

}

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it

By ninja12345, history, 3 years ago, In English

include<bits/stdc++.h>

define getcx getchar

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; }

Full text and comments »

  • Vote: I like it
  • -28
  • Vote: I do not like it

By ninja12345, history, 3 years ago, In English

“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.”

Full text and comments »

  • Vote: I like it
  • -24
  • Vote: I do not like it