This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A = [ | |
['6','千夜'] | |
['7','シャロ'] | |
['8','リゼ'] | |
['9','ココア'] | |
['0','チノ'] | |
[] | |
['i','青山'] | |
['o','マヤ'] | |
['p','メグ'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 2 3 v 3 2 1 ^ | |
2 3 v 3 2 ^ | |
3 v 3 ^ | |
N > N ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <climits> | |
#include <cstdio> | |
#include <functional> | |
#include <iostream> | |
#include <map> | |
#include <numeric> | |
#include <string> | |
#include <utility> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define times(n, i) for(auto i = remove_reference<decltype( (n) )>::type(0); i < (n); i++) | |
#define upto(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i <= (t); i++) | |
#define downto(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i >= (t); i--) | |
#define uptil(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i < (t); i++) | |
#define downtil(f, t, i) for(auto i = remove_reference<decltype((t)-(f))>::type(f); i > (t); i--) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* aa * b | |
* c | |
* d | |
* e * f * g | |
* h | |
* ii * j | |
* k | |
* l | |
[bad] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
font-family: serif; | |
} | |
#top{ | |
display: table; | |
} | |
ul{ | |
display: inline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-+-+ | |
|a|b| | |
| +-+-+ | |
| |c|d| | |
| | +-+ | |
| | |e| | |
+-+-+-+ | |
f(a) → <tr><td rowspan>a</td>f(b)f(c) | |
f(b) → <td>b</td></tr> | |
f(c) → <tr><td rowspan>c</td>f(d)f(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s=[];gets.split.each{|x|s<<(x=~/\d/?x.to_i: (a,b=s.pop 2;b.send x,a))};p s[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
template<class T> class BIT{ | |
private: | |
/** | |
* [---------------------8] | |
* [---------4] | |
* [---2] [---6] | |
* [1] [3] [5] [7] [9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
#define times(n, i) uptil(0, n, i) | |
#define upto(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f); i <= _##i; i++) | |
#define uptil(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f); i < _##i; i++) | |
using namespace std; | |
int main(){ | |
int A, B, C; |