猜数游戏
1003. 猜数游戏 (Standard IO)
时间限制: 1000 ms 空间限制: 262144 KB 具体限制
#include<iostream> #include<string> using namespace std; int main() { int n; cin>>n; string s = to_string(n); //数字--字符串 string temp = s+s; cout<<temp<<endl; int ans = stoi(temp); //字符串--数字 cout<<ans<<endl; int res = ans/7/11/13; cout<<res; return 0; }