検索結果 2 件

by ciiii
12年前
フォーラム: C言語何でも質問掲示板
トピック: poj 3040
返信数: 5
閲覧数: 2303

Re: poj 3040

指摘された通り、オーバーフローしていました。ありがとうございます。 オーバーフローはおそらく解決できたのですが、まだwrong answerです。なぜなのでしょうか・・・ #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <cmath> //#include <map> using namespace std; typedef pair<long,long> P;//x y int main(){ P money[20]; long count = 0; int N; lon...
by ciiii
12年前
フォーラム: C言語何でも質問掲示板
トピック: poj 3040
返信数: 5
閲覧数: 2303

poj 3040

pojの3040番です。wrong answerになってしまうのですが、なぜだかわかりません。どなたか教えてください。サンプルインプットは正しくアウトプットできました。 #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <cmath> //#include <map> using namespace std; typedef pair<int,int> P;//x y int main(){ P money[20]; int count = 0; int N,c; cin >...

詳細検索ページへ移動する