|
|
back to boardthis is very good and short code Posted by Sunnat 16 Jan 2012 02:34 #include<cstdio> int main() { int s=0,a; for(;(a=getchar())!='\n';(a==' ')?s++:(a%3==0)?s+=3:s+=a%3); printf("%i",s); return 0; } Re: this is very good and short code Posted by Sawyer5 17 Jun 2014 12:09 Why it's work? |
|
|