Guest User

Untitled

a guest
Dec 11th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rm -f all_results.txt
  4. touch all_results.txt
  5.  
  6. for f in $(ls -v testy/); do time ./her < testy/$f >> all_results.txt; done
  7. python -c "w = 0
  8. mod = 10**9 + 7
  9. for i in range(1, 1360+1):
  10.  x = int(input())
  11.  w=(w+x*(100**i))%mod
  12. print(w)" < all_results.txt
Advertisement
Add Comment
Please, Sign In to add comment