• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Nonogram solver


Commit MetaInfo

Revisiondf59144a643bd8ffc984037ce2a6edd2507c0d58 (tree)
Time2021-03-06 04:05:45
AuthorAlexander Larin <scalar438@gmai...>
CommiterAlexander Larin

Log Message

clang-format

Change Summary

Incremental Difference

diff -r 16b11c85f5cb -r df59144a643b main.cpp
--- a/main.cpp Fri Mar 05 22:05:08 2021 +0300
+++ b/main.cpp Fri Mar 05 22:05:45 2021 +0300
@@ -79,7 +79,7 @@
7979 for (auto &vec : vecs)
8080 {
8181 vector<Block> blocks;
82- for(auto val : vec)
82+ for (auto val : vec)
8383 blocks.emplace_back(Block(1, val));
8484 res.emplace_back(std::move(blocks));
8585 }
@@ -92,18 +92,19 @@
9292 const char arr[3] = {'.', 'X', '?'};
9393 vector<int> vs(n);
9494 vector<string> res;
95- while(1)
95+ while (1)
9696 {
9797 string str;
98- for(int v : vs) str.push_back(arr[v]);
98+ for (int v : vs)
99+ str.push_back(arr[v]);
99100 res.emplace_back(std::move(str));
100101 int i = 0;
101- while(i != n && vs[i] == 2)
102+ while (i != n && vs[i] == 2)
102103 {
103104 vs[i] = 0;
104105 ++i;
105106 }
106- if(i == n) break;
107+ if (i == n) break;
107108 ++vs[i];
108109 }
109110 return res;
@@ -111,8 +112,8 @@
111112
112113 int main()
113114 {
114- const int n = 7;
115+ const int n = 7;
115116 auto all_blocks = gen_all_blocks(n);
116- auto all_rows = gen_all_rows(n);
117+ auto all_rows = gen_all_rows(n);
117118 std::cout << all_blocks.size() * all_rows.size();
118119 }
\ No newline at end of file