摘要: #include #define ll long long using namespace std; string stream1(ll i) { stringstream stream; stream<<i; return stream.str(); }//int数字转字符串 int main() { int a,b; scanf("%d %d",&a... 阅读全文
posted @ 2019-03-02 10:09 Tonyyy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h>#define ll long longusing namespace std;int main(){ int a; scanf("%d",&a); set<int> s; for(int i=1;i<=a;i++) { s.insert(i/2+i/ 阅读全文
posted @ 2019-03-02 09:58 Tonyyy 阅读(150) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; void print(double a,int b) { if(a>b){ cout=10;i--) { b = i%10*10+i/10; c = abs(i-b)*1.0/x; if(b == c*y){ cout<<i; ... 阅读全文
posted @ 2019-03-02 09:53 Tonyyy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int n; cin>>n; vector v(n+1);//可以自定义vector长度 for(int i=1;i>v[i]; for(int i=1;i lie; vector a(n+1,1); a[i] = a[j... 阅读全文
posted @ 2019-03-02 09:31 Tonyyy 阅读(457) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int m,n,t1,t2; scanf("%d %d",&m,&n); map > mp; for(int i=0;i v(k); for(int i=0;i<k;i++) { scanf("%d",&v[i]); ... 阅读全文
posted @ 2019-03-02 09:07 Tonyyy 阅读(305) 评论(0) 推荐(0) 编辑