Update IO_Speed.mdx
This commit is contained in:
parent
72a3f2347a
commit
dce5713332
1 changed files with 6 additions and 1 deletions
|
@ -156,10 +156,11 @@ Reading input is more complicated when multiple, space-separated values are plac
|
|||
|
||||
*Reading input with `BufferedReader` and `.split()`:*
|
||||
<spoiler title="1209ms">
|
||||
|
||||
```java
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
//1209ms
|
||||
|
||||
public class roboherd_buffered_reader_string_split {
|
||||
|
||||
static int P[][] = new int[100000][];
|
||||
|
@ -182,10 +183,13 @@ public class roboherd_buffered_reader_string_split {
|
|||
pw.close();
|
||||
}
|
||||
}
|
||||
```
|
||||
</spoiler>
|
||||
|
||||
*Reading input with `BufferedReader` and `StringTokenizer`*
|
||||
<spoiler title="986ms">
|
||||
|
||||
```java
|
||||
import java.util.*;
|
||||
import java.io.*;
|
||||
import java.awt.Point;
|
||||
|
@ -214,6 +218,7 @@ public class roboherd_buffered_reader_string_tokenizer {
|
|||
pw.close();
|
||||
}
|
||||
}
|
||||
```
|
||||
</spoiler>
|
||||
|
||||
(custom I/O?)
|
||||
|
|
Reference in a new issue