🗨️ Have a question? Join Chat! | 🇯🇵 Learn Japanese | 📚 Resources | ❓ FAQ |
---|
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import argparse | |
import unicodedata | |
# FF00-FF5F -> 0020-007E | |
MAP = {' ': ' ', '!': '!', '"': '"', '#': '#', '$': '$', '%': '%', '&': '&', | |
''': "'", '(': '(', ')': ')', '*': '*', '+': '+', ',': ',', '-': '-', | |
'.': '.', '/': '/', | |
'0': '0', '1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', |
This file contains hidden or 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
// Copyright (c) 2013 Peking University. | |
// Author: Xiaosong Rong ([email protected]) | |
// | |
// LeetCode template for coding and testing | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stack> | |
using namespace std; |