Advertisement
hamidpioneer

CF Div2 Prob A

Oct 6th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int arr[109];
  6. int n, t, i;
  7. while( scanf("%d%d",&n,&t) ==2)
  8. {
  9. if(t<10)
  10. {
  11. for(i=0; i<n; i++)
  12. {
  13. arr[i]=t;
  14. }
  15. }else if(t==10)
  16. {
  17. arr[0]=1;
  18. for(i=1; i<n; i++)
  19. {
  20. arr[i]=0;
  21. }
  22. }
  23.  
  24. if(n==1 && t>1)
  25. {
  26. printf("%d\n",-1);
  27. }else
  28. {
  29. for(i=0; i<n; i++)
  30. {
  31. printf("%d",arr[i]);
  32. }
  33. printf("\n");
  34. }
  35. }
  36.  
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement