日々精進

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

2016-05-12から1日間の記事一覧

【AOJ 1240】Unreliable Messages

問題 Unreliable Message | Aizu Online Judge ソースコード #include <iostream> #include <string> #include <algorithm> #include <cctype> using namespace std; #define rep(i,n) for(int i = 0 ; i < n ; i++) int main(){ int n; cin >> n; rep(i,n){ string messenger; string message; in</cctype></algorithm></string></iostream>…

【POJ 3863】Business Center

問題 3863 -- Business Center ソースコード #include <iostream> #include <cmath> #include <limits> #define rep(i,n) for(int i = 0 ; i < n ; i++) using namespace std; int n, m; int solve(int u, int d){ int left = 0, right = n+1; int ans = numeric_limits<int>::max(); int m</int></limits></cmath></iostream>…