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
# coding: utf-8 | |
import math | |
nums = int(input()) | |
distance = 0 | |
distance2 = 0 | |
this_x = 0 | |
this_y = 0 | |
x_y ='' | |
data = {} | |
sortdata = [] |
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
inputnums = int(input()) | |
for i in range(inputnums + 1): | |
if i == 0: | |
continue | |
if i % 15 == 0: | |
print("Fizz Buzz") | |
elif i % 3 == 0: | |
print("Fizz") | |
elif i % 5 == 0: |
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
nums = 0 | |
ans = 0 | |
for i in range (4): | |
nums += int(input()) | |
ans = 15 - nums | |
print(ans) |
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
# coding: utf-8 | |
typeKey = input() | |
keyLeng = len(typeKey) | |
flag = 0 | |
ans = 0 | |
for i in range(keyLeng): | |
if i == keyLeng - 1 : | |
break |
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
#!/use/bin/perl | |
use warnings; | |
use strict; | |
use 5.010; | |
my $i = 0; | |
while($i <= 100) { |
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
#!/use/bin/perl | |
use warnings; | |
use strict; | |
use 5.010; | |
say "体重どうぞ"; | |
my $omosa = <STDIN>; |
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
#!/use/bin/perl | |
use warnings; | |
use strict; | |
use 5.010; | |
my $line; | |
while($line = <>){ | |
if($line =~ /<.*?>/){ | |
$line =~ s/<.*?>//g; |
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
const curry = fn => (...args) => fn.bind(null, ...args); | |
const curryOne = fn => x =>fn(x); //引数の数を無視して、1つ目の引数を持ってくる | |
const _compose = (f, g) => (x) => f(g(x)); //2つの関数を実行g => fの順番 | |
const compose = (...fs) => fs.reduce(_compose); //n個の関数を実行する 後ろから実行する(_composeを多様化させた) | |
const pipe = (...fs) => fs.reduceRight(_compose); | |
const p = console.log; | |
const double = (x) => x * 2; |
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
<?php | |
$prices = array(1000, 650, 750, 800); | |
echo '$pricesの値: '; | |
foreach ($prices as $price) { | |
echo $price.' '; | |
} | |
echo '<br>'; | |
echo '-----'; | |
echo '<br>'; |
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 React, { Component } from 'react'; | |
import './App.css'; | |
class App extends Component { | |
constructor(props){ //わかった!!! | |
super(props); | |
this.state = {"name": "ポケモンの名前", //初期値 | |
"classification": null, | |
"type": "ポケモンのタイプ", | |
"image": "https://pics.prcm.jp/f7e8ba48d36a5/59605483/png/59605483.png", |
OlderNewer