| Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
|---|---|---|---|---|---|---|
| 1 | Python | 109 | 36 | 73 | 19 days ago | |
| 2 | Ruby | 176 | 69 | 107 | 19 days ago | |
| 3 | Kotlin | 230 | 94 | 136 | 19 days ago | |
| 4 | Kotlin | 258 | 114 | 144 | 20 days ago | |
| 5 | C++ | 273 | 135 | 138 | 19 days ago | |
| 6 | Python | 284 | 93 | 191 | 20 days ago | |
| 7 | Go | 374 | 170 | 204 | 18 days ago | |
| 8 | C | 405 | 186 | 219 | 20 days ago |
#include<iostream>#include<sstream>#include<vector>#include<string>usingnamespacestd;intmain(){ vector<vector<long>>num(1000); stringline; longx,i,total=0; while(getline(cin,line),line[i=0]/6-7) for(stringstreamss(line);ss>>x;) num[i++].push_back(x); total=i=0; for(charc:line) { if(c==32)continue; x=43-c; for(longw:num[i++])x=43-c?x*w:x+w; total+=x; } cout<<total;}