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 <MemoryFree.h> | |
| void setup(){ | |
| Serial.begin(115200); | |
| } | |
| void loop(){ | |
| Serial.print("before:freeMemory()="); | |
| Serial.println(freeMemory()); |
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 <StandardCplusplus.h> | |
| #include <system_configuration.h> | |
| #include <unwind-cxx.h> | |
| #include <utility.h> | |
| #include <iterator> | |
| #include <vector> | |
| #include <chrono> | |
| #include <Utility.h> | |
| static const int serial_speed = 9600; |
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 <StandardCplusplus.h> | |
| #include <system_configuration.h> | |
| #include <unwind-cxx.h> | |
| #include <utility.h> | |
| #include <iterator> | |
| #include <vector> | |
| #include <chrono> | |
| #define elements 100 |
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
| #!/bin/sh | |
| #関数再帰によるFizzBuzz | |
| FizzBuzz(){ | |
| if [ `expr $a % 15` -eq 0 ]; then | |
| echo "FizzBuzz " | |
| elif [ `expr $a % 3` -eq 0 ]; then | |
| echo "Fizz " |
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
| #!/bin/sh | |
| #for文によるFizzBuzz | |
| if [ $1 -ge 0 -a $2 -ge 0 ]; then | |
| for i in `seq $1 $2` #seq a b aからbまでループ | |
| do | |
| if [ `expr $i % 15` -eq 0 ]; then | |
| echo "FizzBuzz " |
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
| #!/bin/sh | |
| #1から100まで数え上げる | |
| for i in `seq 1 100` | |
| do | |
| if [ `expr $i % 15` -eq 0 ]; then | |
| echo "FizzBuzz " | |
| elif [ `expr $i % 3` -eq 0 ]; then | |
| echo "Fizz " |
NewerOlder