1132 Cut Integer
生活随笔
收集整理的這篇文章主要介紹了
1132 Cut Integer
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
題意:略。
思路:注意除數可能為0的情況,不然會導致浮點錯誤。
代碼:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
string str;
cin>>n;
while(n--){
cin>>str;
,str.size()/);
,str.size()/);
int a=stoi(s1),b=stoi(s2),val=stoi(str);
&& val%(a*b)==) cout<<"Yes\n";
else cout<<"No\n";
}
}
總結
以上是生活随笔為你收集整理的1132 Cut Integer的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python request使用
- 下一篇: 部署单机版Redis