Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
349587 | 胡珂 | 【C2-3】数字和加强版 | C++ | Accepted | 100 | 2 MS | 244 KB | 161 | 2025-09-15 19:43:38 |
#include<iostream> using namespace std; int main(){ int n,g,s=0; cin>>n; while(n>0){ g=n/1%10; s=s*10+g; n=n/10; } cout<<s*2+1; return 0; }