有点类似CF某场div2T1...

  前面接上1234567890000000,后面加上x+(1234567890000000%x)就可以保证是x的倍数了

#include<iostream>
#include<cstring>
#include<cstdlib>
#include<cstdio>
#include<algorithm>
#define ll long long
using namespace std;
const int maxn=,inf=1e9;
int T,x;
void read(int &k)
{
int f=;k=;char c=getchar();
while(c<''||c>'')c=='-'&&(f=-),c=getchar();
while(c<=''&&c>='')k=k*+c-'',c=getchar();
k*=f;
}
int main()
{
read(T);
while(T--)
{
read(x);
if(x)printf("1234567890%06lld\n",1ll*x-(1234567890000000ll%x));
else printf("-1\n");
}
return ;
}

最新文章

  1. hoj 2662 经典状压dp // MyFirst 状压dp
  2. Daily Build
  3. linux库之pam
  4. eclipse 报错汇总
  5. css+javascript 写的HTML5 微信端输入支付密码键盘
  6. [汇编语言]-第九章 jcxz,loop指令,转移位移的意义
  7. tracker-store and tracker-miner-fs eating up my CPU on every startup
  8. Struts2 单文件上传
  9. struts2的初步认识!
  10. hdu1114小猪抢劫银行
  11. iOS开发从申请账号到上线APP Store步骤
  12. 从源码安装go 1.2.2
  13. Tensorflow会话Session
  14. July 04th. 2018, Week 27th. Wednesday
  15. 在表单提交之前做校验-利用jQuery的submit方法
  16. 仿照wtform自定义Form组件
  17. 使用Go语言+Protobuf协议完成一个多人聊天室
  18. less的写法 calc以及变量
  19. 第二十四天- 模块导入 import from xxx import xxx
  20. HDU.1847 Good Luck in CET-4 Everybody! ( 博弈论 SG分析)

热门文章

  1. selenium自动化之处理浏览器警告弹窗
  2. HTML从入门到放弃
  3. CMDBuild2.4.3安装配置
  4. 选题博客:北航iCourse课程信息平台
  5. [C++] Solve &quot;No source available for main()&quot; error when debugging on Eclipse
  6. rest_framework之版本控制
  7. xpath获取同级元素
  8. ffmpe安装
  9. “Hello World!”团队第五周第一次会议
  10. Thunder团队第七周 - Scrum会议5