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
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
//入力 | |
int n,ans = 0; | |
cin>>n; | |
vector<int>a(n); | |
vector<vector<int>>x(n,vector<int>(n)),y(n,vector<int>(n)); | |
for(int i = 0;i < n;i++){ | |
cin>>a[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
#include<bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
//入力 | |
int n,m,ans = 0; | |
cin>>n>>m; | |
vector<int>k(m),p(m); | |
vector<vector<int>>s(m,vector<int>(n)); | |
for(int i = 0;i < m;i++){ | |
cin>>k[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
//「000」〜「111」を出力するプログラム | |
#include<bits/stdc++.h> | |
using namespace std; | |
void printBit(int bit,int digit){//bitを表示する数字と何桁まで表示するかを引数で指定 | |
string s; | |
for(int i = 0;i < digit;i++){ | |
if(bit & (1LL << i)){//bitが立っていたら | |
s = "1" + s; | |
} | |
else { |
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 json,os,base64 | |
import urllib.request | |
from flask_cors import CORS,cross_origin | |
from flask import Flask,request,abort,jsonify | |
#POSTするURL設定 | |
method = 'POST' | |
url = 'https://hogehoge' | |
headers = {'Content-Type' : 'application/json'} |
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
#include "DigiKeyboard.h" | |
void setup() { | |
// don't need to set anything up to use DigiKeyboard | |
} | |
void loop() { | |
// this is generally not necessary but with some older systems it seems to | |
// prevent missing the first character after a delay: | |
DigiKeyboard.sendKeyStroke(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
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main(){ | |
string Progression; | |
cin>>Progression; | |
int OpCnt,Priority[100],Value[100],nest,ip,i; | |
char chr,Operator[100]; | |
OpCnt=0; | |
Value[0]=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
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main(){ | |
string Progression; | |
int n; | |
cin>>n; | |
for(int cnt=0;cnt<n;cnt++){ | |
cin>>Progression; | |
int OpCnt,Priority[100],Value[100],nest,ip,i; |