| Show all threads Hide all threads Show all messages Hide all messages |
| About compilator | Aliaksei | 1941. Scary Martian Word | 5 Jan 2013 17:37 | 3 |
What I have to include for using function getline(cin,S)? include <string> Edited by author 05.01.2013 17:37 |
| AHMEDE | [TDUweAI] daminus | 1941. Scary Martian Word | 5 Jan 2013 17:13 | 1 |
AHMEDE [TDUweAI] daminus 5 Jan 2013 17:13 ahmet mende altynjy barlag yalnysh jogap diyya, name bolmagy mumkin? mysal yaz hany shona.... |
| What does this mean? | Sure | 1942. Attack at the Orbit | 5 Jan 2013 17:03 | 12 |
Who can explain "The captain can’t rotate the weapon aiming system.",please? The captain can't rotate angle Does it mean that the system can only shoot at targets both coordinates of which are integers on just one line? Edited by author 05.01.2013 15:25 What??Sorry, I can't see what you say. Edited by author 05.01.2013 15:54 "laser can shoot at targets both coordinates of which are integers" Any target with both integer coordinates in new coordinate system can be destroyed. Really? This ought to be one of the most confusing statements I've ever seen, if this is true... "The captain can’t rotate the weapon aiming system." How come I can be at point (0, 0) and shoot at (1, 0) and (0, 1) if I can't rotate the aiming system? You are not in point (0,0) - you are in the space near the planet. :) And all the points including (0,0) are on the planet's surface. Are you Sure? But I got Wrong Answer many times. If it is true, I think the second answer must be less than 0.5*sqrt(2). Am I right? Then is it true that every two pads can both be destroyed if they are equal after the decimal point? This is true, for example, for pads with positive coordinates. Pads (0.0, 0.3) and (0.0, -0.7) can both be destroyed too. |
| No subject | Looksery DotaClub | 1945. Many-armed Brothers | 5 Jan 2013 16:39 | 2 |
Can we consider a guy with one hand to be a brother of another one with three hands if there is no 2-hands guy in input data? Of course g>=3 in this case. Yes, if g>=3 then 1-hand and 3-hands guys may be brothers. And their 2-hands brother just didn't go to cinema. :) |
| WA1 Is the first test from task? | Birne Ageev | 1948. The Robot on the Line | 5 Jan 2013 16:03 | 4 |
f**king #ifndef ONLINE_JUDGE Sorry for stupid questions. |
| WA#1 | Rushboy | 1428. Jedi Riddle | 5 Jan 2013 16:02 | 1 |
WA#1 Rushboy 5 Jan 2013 16:02 why? here is the code: #include <iostream> #include <cmath> using namespace std; int main(){ long long X,Y,Z,k,l,m; short A,B,C; cin>>A>>B>>C; k=(C-1)/A; l=(C-1)/B; X=1;Y=1; for(long i=1;i<=k;i++) X*=2; for(long i=1;i<=l;i++) Y*=2; cout<<X<<" "<<Y<<" "<<"2"; return 0; } |
| Problem about H | mbrc | 1948. The Robot on the Line | 5 Jan 2013 15:59 | 2 |
Will the total dist travelled after k seconds be f(x)+f(x+1)+f(x+2)+...f(x+k-1) or it will be f(x+k-1) just? Thanks! f(x)+f(x+1)+f(x+2)+...f(x+k-1) |
| Question 1 | sklyack | 1949. The Best Picture in the Galaxy | 5 Jan 2013 15:47 | 1 |
Can student end watch one movie and start watch another one at the same moment? UPD: yes. Edited by author 05.01.2013 15:50 |
| How many cases here? | hnustpengtuo | 1941. Scary Martian Word | 5 Jan 2013 15:43 | 3 |
<- Edited by author 05.01.2013 15:44 |
| What is the answer to this test? | Anatoly | 1941. Scary Martian Word | 5 Jan 2013 15:40 | 2 |
aaa aaa bbb aaa aaa bbb ccc aaa zzz aaa bbb ccc I think that it should be 1. right? |
| Clarification | forest | 1942. Attack at the Orbit | 5 Jan 2013 15:03 | 1 |
Is it true that lazer beam should begin at origin ? |
| Why wa5? Help me please...... | who am I? | 1441. From the History of Gringotts Bank | 5 Jan 2013 14:49 | 1 |
|
| Axis | pmartynov | 1944. Record of the Attack at the Orbit | 5 Jan 2013 14:40 | 3 |
Axis pmartynov 5 Jan 2013 13:50 Assume maxX is -1 and minY is -2. Is it correct that there should be no axis on the graph? Edited by author 05.01.2013 13:51 The first line should correspond to the maximum value of y (or 0) Ah, sorry got it. |
| ANSISTRING | [TDUweAI] daminus | 1941. Scary Martian Word | 5 Jan 2013 13:33 | 2 |
Can ansistring (pascal) take 500000*3+const symbols? Edited by author 05.01.2013 14:25 |
| Real numbers | 2rf | 1942. Attack at the Orbit | 5 Jan 2013 13:07 | 1 |
Is ".5" real number? Same question about "1." UPD: looks like ".5" is not, about "1." I'm not sure but there isn't much trouble with such numbers. Edited by author 05.01.2013 13:20 |
| WA#4 | [TH0412]tdson | 1110. Power | 5 Jan 2013 09:15 | 2 |
WA#4 [TH0412]tdson 27 Dec 2012 08:31 #include<iostream> #include<cmath> using namespace std; int tinh(int x, int n) { int temp = 1; for(int i = 0; i < n; i++) temp *= x; return temp; } void main() { int n, m, y, x; bool flag = true; cin >> n >> m >> y; for(x = 0; x < m; x++) { if(tinh(x, n)%m == y) { cout << x << " "; flag = false; } } if(flag) cout << -1; } tinh(x, n) may produce a very big number that leading overflow |
| test2 | Vlad | 1348. Goat in the Garden 2 | 5 Jan 2013 03:57 | 1 |
test2 Vlad 5 Jan 2013 03:57 let me know test 2 please...! |
| Is there a simple solution? | Squid | 1353. Milliard Vasya's Function | 4 Jan 2013 19:53 | 3 |
I have AC, but it seems to me that my algo isn't the best. I used DP. Is there any formula? |
| Doing nothing exceeds the memory limit in Java | Peter Lawrey | 1220. Stacks | 4 Jan 2013 19:14 | 1 |
If I run public class Stacks { public static void main(String... args) { System.gc(); } } It reports I exceed the memory limit with a usage of 4885 KB. public class Stacks { public static void main(String... args) { System.gc(); } } Reports 326 KB used. How is the memory usage determined. I assume you cannot have your managed memory trigger a GC which is a bit restrictive for Java. |
| spelling 'consiquently' ===> 'consequently' | Doctor Lai | 1940. Not So Simple Years | 4 Jan 2013 00:21 | 2 |
|