| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 74602 | cly | 夏令营小旗手 | C++ | Accepted | 100 | 0 MS | 264 KB | 285 | 2023-05-27 16:41:20 |
#include <iostream> #include <string> using namespace std; int main() { string name; cin >> name; int sum = 0; for (char ch : name) { sum += (int) ch; // 把字符转换成对应的 ASCII 码值 } cout << sum << endl; return 0; }