fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[36]={1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9};
  5. long long int temp=0;
  6. for(int i=35 ; i >= 0 ; i--) {
  7. temp = 10*temp+a[i];
  8. temp %= 1000000007;
  9. }
  10. printf("%lld",temp);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
703705779