日々精進

aikoと旅行とプログラミング

2016-04-27から1日間の記事一覧

【AOJ 2150】Matsuzaki Number

問題 Matsuzaki Number | Aizu Online Judge ソースコード #include <iostream> #include <cstring> #include <vector> #include <algorithm> using namespace std; #define N 4000001 #define rep(i,n) REP(i,0,n) #define REP(i,a,n) for(int i=a ; i < n ; i++) #define pb push_back int main()</algorithm></vector></cstring></iostream>…

【AOJ 2400】You Are the Judge

問題 You Are the Judge | Aizu Online Judge ソースコード #include <iostream> #include <string> #include <cstring> #include <algorithm> using namespace std; #define rep(i,n) for(int i = 0 ; i < n ; i++) struct SCORE{ int id, ac, penalty; bool operator < (const SCORE& another) co</algorithm></cstring></string></iostream>…

【AOJ 2399】Save Your Privacy!

問題 Save Your Privacy! | Aizu Online Judge ソースコード #include <cstring> #include <iostream> using namespace std; #define rep(i,n) for(int i = 1 ; i <= n ; i++) int main(){ int n; bool data[101][101]; bool ans[101]; while(cin >> n, n){ memset(data, false,</iostream></cstring>…

【AOJ 2007】Make Purse Light

問題 Make Purse Light | Aizu Online Judge ソースコード #include <iostream> #include <algorithm> using namespace std; #define rep(i,n) for(int i = 0 ; i < n ; i++) int coin[4]; int min_coin[4]; int d[] = {10, 50, 100, 500}; int out[4]; int main(){ int m; bool f</algorithm></iostream>…