-- --- .-. ... . -.-. --- -.. . --. .- -- .
なぜかモールス信号を覚えようと思って作ったゲームです。
なぜC++で作ったのか謎ですが、morse.cppを適当にコンパイルすると良いです。
1行目にMAX_LENという定数がありますが、これはtrainingモードで出てくるモールス信号の長さの制限です。
最初はこれを2にして始めて、覚えたら3にして、覚えたら4にして・・・とやると覚えやすいです。
-- --- .-. ... . -.-. --- -.. . --. .- -- .
なぜかモールス信号を覚えようと思って作ったゲームです。
なぜC++で作ったのか謎ですが、morse.cppを適当にコンパイルすると良いです。
1行目にMAX_LENという定数がありますが、これはtrainingモードで出てくるモールス信号の長さの制限です。
最初はこれを2にして始めて、覚えたら3にして、覚えたら4にして・・・とやると覚えやすいです。
| //インクルード・マクロ・定数 略 | |
| #define act(...) act2(__VA_ARGS__,"") | |
| string token = "KONOTOKENHANISEMONODESU114514810"; | |
| string act2(string com, ...) { | |
| string url = "https://game.coderunner.jp/"; | |
| url += com+"?token="+token; | |
| va_list args; | |
| va_start(args, com); | |
| while (1) { | 
| #include <iostream> | |
| #include <algorithm> | |
| #include <numeric> | |
| using namespace std; | |
| const int MAX_N = 605; | |
| const int MAX_M = 180305; | |
| const int INF = 1000; | |
| int X[MAX_N]; | 
| #include <iostream> | |
| #include <algorithm> | |
| #include <numeric> | |
| using namespace std; | |
| const int MAX_N = 605; | |
| const int MAX_M = 180305; | |
| const int INF = 1000; | |
| int X[MAX_N]; | 
| // 乱数依存+map使用の軽実装バージョン | |
| #include <cstdio> | |
| #include <vector> | |
| #include <map> | |
| #include <cstdlib> | |
| #define rep(i,n) for (int i = 0; i < n; ++i) | |
| using namespace std; | |
| typedef long long ll; | |
| class ToursDecomposition { | 
| #include <cstdio> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <map> | |
| #include <algorithm> | |
| #define rep(i,n) for (int i = 0; i < n; ++i) | |
| #define df(x) int x = in() | |
| #define fi first | 
| // HL-decomposition | |
| struct hl { | |
| int n; | |
| vector<vi> to, d; | |
| vi vd, vk, pv, dep; | |
| vector<bit> t; // bit | |
| int root; | |
| hl() {} | |
| hl(int mx):n(mx),to(mx),vd(mx),vk(mx),dep(mx) {} | |
| void add(int a, int b) { | 
| #include <cstdio> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <map> | |
| #include <ctime> | |
| #include <cstdlib> | |
| #define fi first | |
| #define se second | |
| #define rep(i,n) for(int i = 0; i < n; i++) | 
| Hello, I am Kento Nikaido (aka. snuke) from the team Running. | |
| I'd like to set you a puzzle. | |
| I think of some English words and I tell you the FORMAT of the words. | |
| Can you guess these words? | |
| Example: | |
| Q. ABCCDCE -> A. running | |
| (Some words may be in the past tense or the -ing form.) | |
| Problem: | 
| xの山とyの山のgrundy数を(x,y)に書いた表を考える。 | |
| 1*1の表: | |
| |0| | |
| 0-indexedなので、両方0の山です。 | |
| 2*2の表: | |
| |01| | |
| |10| | |
| このパターンが基本になってきます。 |