OSDN Git Service

style: format markdown files with remark-lint
author24OI-bot <15963390+24OI-bot@users.noreply.github.com>
Thu, 5 Sep 2019 06:36:36 +0000 (02:36 -0400)
committer24OI-bot <15963390+24OI-bot@users.noreply.github.com>
Thu, 5 Sep 2019 06:36:36 +0000 (02:36 -0400)
docs/misc/gen-tests.md

index 6d1e243..eb5907d 100644 (file)
@@ -105,13 +105,13 @@ int main(int argc, char* argv[]) {
   k = rnd.next(1, n);
 
   for (i = 1; i <= n; ++i) p.push_back(i);
-  
+
   shuffle(p.begin(), p.end());
   // testlib.h 自带的 random_shuffle, 使用 rnd.next() 进行 shuffle
 
   printf("%d %d %d\n", n, m, k);
   for (i = 0; i < n; ++i) {
-    printf("%d%c", p[i], " \n" [i == n - 1]);
+    printf("%d%c", p[i], " \n"[i == n - 1]);
     // 把字符串当作数组用,中间空格,末尾换行,是一个造数据时常用的技巧
   }