回答編集履歴
1
edit
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
int main(void){
|
14
|
+
|
15
|
+
std::ios_base::sync_with_stdio(false);
|
14
16
|
|
15
17
|
int n;
|
16
18
|
|
@@ -33,3 +35,25 @@
|
|
33
35
|
}
|
34
36
|
|
35
37
|
```
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
---
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
C言語の質問でしたか…
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
C++でもscanfの方がはやいからという理由で使われる方がいるようです。
|
50
|
+
|
51
|
+
`std::ios_base::sync_with_stdio(false)`
|
52
|
+
|
53
|
+
を入れることで`std::in`を速くできます。
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
https://www.geeksforgeeks.org/fast-io-for-competitive-programming/
|
58
|
+
|
59
|
+
https://www.geeksforgeeks.org/cincout-vs-scanfprintf/
|