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> | |
/**省略**/ | |
int n,m;///制限 | |
int dp[1000000001],d[1002]; | |
/**省略**/ | |
int main(){ | |
dp[0]=1; | |
rep(i,0,n){ | |
repm(j,10000001,0){ | |
if(dp[j]){ |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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> | |
#define int long long int | |
#define rep(a,b,c) for(int a=b;a<c;a++) | |
#define repm(a,b,c) for(int a=(b-1);a>=c;a--) | |
#define pb push_back | |
#define str string | |
#define sf(a) scanfs("%d",&a) | |
#define pb push_back | |
#define mp make_pair |
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
void Main() | |
{ | |
int count = 0; | |
Font font(50); | |
Point pos(0, 200); | |
while (System::Update()) | |
{ | |
if (Input::MouseL.clicked) { | |
++count; |
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
void Main() | |
{ | |
Image image(Window::Size(), Palette::White); | |
DynamicTexture texture(image); | |
while (System::Update()) | |
{ | |
if (Input::MouseL.pressed) | |
{ |
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
struct{ | |
void dijkstra(int s){ | |
priority_queue<pii, vector<pii>, greater<pii> > que; | |
fill(d,d+V,INF); | |
d[s] = 0; | |
que.push(pii(0,s)); | |
while(!que.empty()){ | |
pii p = que.top(); que.pop(); | |
int v = p.second; | |
if (d[v] < p.first) continue; |
OlderNewer