- 輸入符號為
+-*/() - 輸入數字皆為
實數 - 製作包含括弧,考慮四則運算邏輯的計算機
- 輸入皆為合法算式,無須考慮算式錯誤
- 運算元之間皆以空格
作為切割 - 運算元可為負數 (如:
1 * -3)
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
| #include <iostream> | |
| #include <iomanip> | |
| class Tromino { | |
| public: | |
| static int* Solve(int m, int block) { | |
| int width = static_cast<int> (pow(2, m)); | |
| int *matrix = new int[width * width] {0}; | |
| n_ = 1; |
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
| // Problem source: http://tioj.infor.org/problems/1004 | |
| #include <iostream> | |
| using namespace std; | |
| typedef struct node { | |
| int data; | |
| node *next; |
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
| .ellipsis { | |
| display: -webkit-flex; | |
| display: flex; | |
| } | |
| .ellipsis .ellipsis-item { | |
| -webkit-flex: 1; | |
| flex: 1; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; |
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
| class Test { | |
| public static void main(String[] args) { | |
| System.out.println("Test Gist!"); | |
| } | |
| } |
NewerOlder