Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
farma11 / UVa11995_01.cpp
Last active Jan 13, 2018
UVa #11995 I Can Guess the Data Structure!
View UVa11995_01.cpp
#include <iostream>
#include <string>
#include <stack>
#include <queue>
#include <array>
#include <functional>
#include <vector>
using namespace std;
string table[5] = { "stack", "queue", "priority queue", "impossible", "not sure" };
farma11 / ABC013C_01.cpp
Last active Jan 13, 2018
AtCoder Beginner Contest #013C – 節制
View ABC013C_01.cpp
#include <iostream>
#include <algorithm>
using namespace std;
#define LL long long int
LL n, h;
LL a, b, c, d, e;
// 質素な食事の最低限の回数が求められる
inline LL minCheapFood(double x){
View std-string.cpp
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <iomanip>
#include <sstream>
using namespace std;
farma11 / ABC085C_01.cpp
Created Jan 22, 2018
AtCoder Beginner Contest #085 C - Otoshidama
View ABC085C_01.cpp
#include <iostream>
#include <algorithm>
using namespace std;
enum {
B10 = 10000, B5 = 5000, B1 = 1000
inline bool isCorrect(int x10, int x5, int x1, int n, long y){
bool isPositive = ((x10 >= 0) && (x5 >= 0) && (x1 >=0));
import numpy as np
import matplotlib.pylab as plt
def sigmoid(x):
return 1 / (1 + np.exp(-x))
x = np.arange(-5.0, 5.0, 0.1) # -5.0から5.0まで0.1刻みで生成
y = sigmoid(x)
plt.plot(x, y)
View AOJ0033_Bit01.cpp
#include <iostream>
using namespace std;
int main() {
int n, balls[10]; cin >> n;
for(int i = 0; i < 10; i++) cin >> balls[i];
bool sortable = false;
for(int i = 0; i < (1 << 10); i++){
farma11 / navbar-sample.html
Last active Feb 12, 2018
View navbar-sample.html
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#">Bland</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<!-- 切替ボタンのアイコン -->
<span class="navbar-toggler-icon"></span>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
You can’t perform that action at this time.