I also try many time in this question, but all WA.
I know that it is a precision problem after read these post.
Can anyone help me improve the precision?
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cmath>
using namespace std;
struct Complex{
double x,y;
bool operator ...
Search found 18 matches
- Sun Oct 14, 2007 6:15 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10378 - Complex Numbers
- Replies: 25
- Views: 16042
- Thu Sep 13, 2007 5:11 pm
- Forum: Bugs and suggestions
- Topic: 740, WA after changing the judge
- Replies: 1
- Views: 1712
740, WA after changing the judge
I have re-submitted the program. I find it is WA now.
Do another people also face this problem?
Do another people also face this problem?
- Wed Sep 05, 2007 2:08 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11232 - Cylinder
- Replies: 34
- Views: 18866
- Tue Sep 04, 2007 5:32 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11232 - Cylinder
- Replies: 34
- Views: 18866
- Tue Sep 04, 2007 11:30 am
- Forum: Volume 112 (11200-11299)
- Topic: 11232 - Cylinder
- Replies: 34
- Views: 18866
- Mon Sep 03, 2007 7:32 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11232 - Cylinder
- Replies: 34
- Views: 18866
- Wed Mar 14, 2007 4:05 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10205 - Stack 'em Up
- Replies: 60
- Views: 33155
- Thu Jul 27, 2006 5:40 am
- Forum: Volume 3 (300-399)
- Topic: 383 - Shipping Routes
- Replies: 27
- Views: 10751
- Mon Jul 24, 2006 10:28 pm
- Forum: Volume 3 (300-399)
- Topic: 343 - What Base Is This?
- Replies: 72
- Views: 28297
- Mon Jul 24, 2006 9:12 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10055 - Hashmat the Brave Warrior
- Replies: 166
- Views: 77212
- Mon Jul 24, 2006 8:40 pm
- Forum: Volume 3 (300-399)
- Topic: 383 - Shipping Routes
- Replies: 27
- Views: 10751
383 PE
I dont know why I get PE.
Anyone have an idea?
Here is my code.
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <map>
using namespace std;
int main(){
int n; cin >> n; cout << "SHIPPING ROUTES OUTPUT" << endl;
for(int i=1;i<=n;++i){
cout ...
Anyone have an idea?
Here is my code.
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <map>
using namespace std;
int main(){
int n; cin >> n; cout << "SHIPPING ROUTES OUTPUT" << endl;
for(int i=1;i<=n;++i){
cout ...
- Sun Jul 23, 2006 9:13 am
- Forum: Volume 4 (400-499)
- Topic: 476 - Points in Figures: Rectangles
- Replies: 87
- Views: 18831
476 WA
I dont know why it is WA. Can anyone help me?
Here is my code.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int c=1; double y,z; char x; vector<vector<double> > v;
while(cin >> x,x!='*'){
vector<double> w;
for(int i=0;i<4;cin>>y,w.push_back(y),++i ...
Here is my code.
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int c=1; double y,z; char x; vector<vector<double> > v;
while(cin >> x,x!='*'){
vector<double> w;
for(int i=0;i<4;cin>>y,w.push_back(y),++i ...
- Fri Jul 21, 2006 7:16 am
- Forum: Volume 100 (10000-10099)
- Topic: 10055 - Hashmat the Brave Warrior
- Replies: 166
- Views: 77212
10055 CE
I dont know why i get compile error.
Can anyone tell me what is wrong?
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long x,y;
while(cin >> x >> y) cout << abs(x-y) << endl;
}
Can anyone tell me what is wrong?
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long x,y;
while(cin >> x >> y) cout << abs(x-y) << endl;
}
- Thu Jul 20, 2006 10:53 am
- Forum: Volume 4 (400-499)
- Topic: 460 - Overlapping Rectangles
- Replies: 25
- Views: 5779
460 WA
I dont know why I get WA.
If you find any error in the output, please give me the sample input.
#include <iostream>
#include <string>
using namespace std;
int main(){
int p; cin >> p;
for(int i=0;i<p;++i){
if(i>0) cout << endl;
int a=0,b=0,c=9999,d=9999,w,x,y,z;
for(int j=0;j<2;++j){
bool m ...
If you find any error in the output, please give me the sample input.
#include <iostream>
#include <string>
using namespace std;
int main(){
int p; cin >> p;
for(int i=0;i<p;++i){
if(i>0) cout << endl;
int a=0,b=0,c=9999,d=9999,w,x,y,z;
for(int j=0;j<2;++j){
bool m ...
- Mon Jul 17, 2006 9:40 pm
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50874