Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <bits/stdc++.h> | |
| #define FOR(i,a,b) for (auto i=(a);i<(b);i++) | |
| #define REP(i,n) for (auto i=0;i<(n);i++) | |
| #define EPS 1e-15 | |
| #define I 1 | |
| #define H 4 | |
| #define O 1 | |
| #define N 500 | |
| #define alpha 0.35 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 UIKit | |
| let array = ["ズン", "ドコ"] | |
| var zun = 0 | |
| while true { | |
| let a = Int(arc4random_uniform(2)) | |
| print(array[a]) | |
| if a == 0 { | |
| zun += 1 | |
| } | |
| else if a == 1 && zun == 4 { |
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
| var cashe :Dictionary<String, Int> = [:] | |
| func search (list: [[Int]], i:Int, j:Int) -> Int { | |
| if cashe["\(i):\(j)"] != nil { | |
| return cashe["\(i):\(j)"]! | |
| } | |
| if i > 14{ | |
| return 0 | |
| } | |
| else { |
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
| //: Playground - noun: a place where people can play | |
| //:累乗をするための関数を定義する | |
| func jyou(n : Double, x:Int) -> Double { | |
| var ans = 1.0 | |
| for _ in 1...x{ | |
| ans *= n | |
| } | |
| return ans | |
| } |