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
| import java.util.ArrayList; | |
| public class Prime{ | |
| public static void main(String[] args){ | |
| long start = System.currentTimeMillis(); | |
| // System.out.println(2); | |
| // System.out.println(3); | |
| int num = 5; | |
| ArrayList<Integer> array = new ArrayList<Integer>(); | |
| array.add(2); |
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 <vector> | |
| #include <time.h> | |
| #include <float.h> | |
| #include <math.h> | |
| using namespace std; | |
| //int checkPrime(int num, vector<int> array); | |
| int checkPrime(int num, vector<int> &array); |
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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| require_relative 'age' | |
| require_relative 'negi' | |
| require_relative 'tamago' | |
| kinugasa = Kinugasadon::Kinugasa.new | |
| kinugasa.addage | |
| kinugasa.addnegi |
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
| module Kinugasadon | |
| class Kinugasa | |
| def addage | |
| puts "油揚げを入れました" | |
| end | |
| def addfruits | |
| puts "バナナを入れました" | |
| end | |
| end |
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
| module Kinugasadon | |
| class Kinugasa | |
| def addnegi | |
| puts "葱を入れました" | |
| end | |
| def addfruits | |
| puts "苺を入れました" | |
| end | |
| end |
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
| module Kinugasadon | |
| class Kinugasa | |
| def addtamago | |
| puts "玉子をいれました" | |
| end | |
| def addfruits | |
| puts "衣笠丼にはフルーツは入れません" | |
| end |
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<stdio.h> | |
| int int_pow(int x, int y); | |
| int main(){ | |
| printf("%d\n",int_pow(3,4)); | |
| }; | |
| int int_pow(int x, int y){ | |
| if(y == 0){ |
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<stdio.h> | |
| double sankakkei_menseki(double teihen, double takasa); | |
| double enmenseki(double hankei); | |
| double enchuu_taiseki(double teimenseki, double takasa); | |
| int main(){ | |
| printf("%5.2f\n", sankakkei_menseki(5.0, 4.0)); | |
| printf("%5.2f\n", enmenseki(5.0)); | |
| printf("%5.2f\n", enchuu_taiseki(5.0, 10.0)); | |
| printf("%5.2f\n", enchuu_taiseki(enmenseki(5.0),10.0)); |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Data::Dumper; | |
| use feature ':5.10'; | |
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
| print "私の名前は@tomcha_です。" |