Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
45622 | liusiyu | 求十位数字-2023年stema | C++ | Runtime Error | 3 MS | 248 KB | 216 | 2024-04-18 21:56:21 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int ws; int m=n; while(m!=0){ ws++; m/=10; } int s=1; for(int i=0;i<ws-2;i++) s*=10; cout<<n/s%10; return 0; }