Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import kotlinx.coroutines.*
  2. import java.io.FileWriter
  3. val u="""import kotlinx.coroutines.*
  4. import java.io.FileWriter
  5. val u=
  6. val p=u.substring(0, 60)+'"'+'"'+'"'+u+'"'+'"'+'"'+u.substring(60)
  7. fun main()=runBlocking<Unit>{(0..750000).map{async(Dispatchers.Default){
  8. val w = FileWriter(it)
  9. w.write(p)
  10. w.close()
  11. }}.map {it.await()}}
  12. """
  13. val p=u.substring(0, 60)+'"'+'"'+'"'+u+'"'+'"'+'"'+u.substring(60)
  14. fun main()=runBlocking<Unit>{(0..750000).map{async(Dispatchers.Default){
  15. val w = FileWriter(it.toString())
  16. w.write(p)
  17. w.close()
  18. }}.map {it.await()}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement