Skip to content

Instantly share code, notes, and snippets.

View yudegaki's full-sized avatar

Shunsuke Otani yudegaki

  • Tokyo
View GitHub Profile
#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];
#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];
//「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 {
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'}
#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);
#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;
#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;