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
import sys | |
if len(sys.argv) != 2: | |
print("Usage:") | |
print("python3 triplePalindrome.py 30041777") | |
sys.exit(-1) | |
nStr = sys.argv[1] | |
n = int(nStr) |
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
program p | |
character(len = *), parameter :: c = '' & | |
//' //''''\n' & | |
//'\n' & | |
//' character(len = :), allocatable :: d\n' & | |
//'\n' & | |
//' integer :: i\n' & | |
//'\n' & | |
//' print ''(a)'', "program p"\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
subroutine eniuq(t) | |
character(len = :), allocatable :: s | |
character(len = *) :: t | |
integer :: i | |
s = '' | |
do i = 1, len(t) | |
if (t(i:i) == char(10)) then | |
s = s//char(34)//'//char(10)// &'//t(i:i)//' '//char(34) | |
else | |
s = s//t(i: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
clear | |
clc | |
xdel(winsid()) | |
asc = 'send help' | |
//============================================================================== | |
bin = '' |
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
module mymodule | |
integer, parameter :: n = 6 | |
integer, parameter :: myarray(n) = [1, 1, 2, 3, 5, 8] | |
contains | |
integer function myfunc(input) |
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
# hello.r | |
# Windows one-time setup (requires choco): | |
# | |
# choco install R | |
# | |
# Run this from a shell: | |
# | |
# "/c/Program Files/R/R-4.1.2/bin/Rscript.exe" hello.r |