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
use windows::{ | |
core::*, Win32::Foundation::*, Win32::Graphics::Gdi::ValidateRect, | |
Win32::System::LibraryLoader::GetModuleHandleA, Win32::UI::WindowsAndMessaging::*, | |
}; | |
fn main() -> Result<()> { | |
unsafe { | |
// GetModuleHandleAは指定したモジュールハンドルを取得する。 | |
// 今回はNoneを指定しているため呼び出し元のプロセスの作成に使用されるファイルへのハンドル(ポインタ)を返す。 | |
// 以下2行の--がついてる部分は別のクレートで定義されたものだったので違う! |
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<vector> | |
using namespace std; | |
void solve(int,int); | |
vector<int> d; | |
vector<int> point; | |
int n; |
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> | |
using namespace std; | |
typedef long long int lli; | |
void solve(int,int,int,int,int[]); | |
lli N,K,Q; | |
int memo[210][210]; |
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<algorithm> | |
using namespace std; | |
typedef long long ll; | |
ll C,S,T,N; | |
ll solve(ll,ll,ll ,ll); | |
ll work[2][101]; |
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<algorithm> | |
#include<vector> | |
int level[101],exp[101],num[101]; | |
using namespace std; | |
int main(){ | |
int N,M; |
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> | |
using namespace std; | |
int main(){ | |
int a,b,c,d,ave; | |
cin >> a >> b >> c >> d >> ave; | |
cout << 5*ave-a-b-c-d << endl; |
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
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0510 | |
#include<cstdio> | |
int main(){ | |
int s=0,t=0; | |
int tmp[4]; | |
scanf("%d %d %d %d",&tmp[0],&tmp[1],&tmp[2],&tmp[3]); | |
for(int i=0;i<4;i++){ |