Show all threads Hide all threads Show all messages Hide all messages |
Please help. Python 3.8 | ok_SYS | 1293. Eniya | 1 Nov 2021 23:09 | 1 |
N = input().split() res = int(N[0]) * int(N[1]) * int(N[2]) * 2 NVM... forgot to use print Edited by author 01.11.2021 23:13 |
Runtime error из-за чего эта ошибка? | German | 1293. Eniya | 5 Oct 2020 22:06 | 1 |
a=float(input()) b=float(input()) c=float(input()) k=a*b*c*2 print(k) |
VERY FUNNY STORY! | Shogal [Kaliningrad] | 1293. Eniya | 31 Jan 2019 17:20 | 12 |
It's very funny to read how I tried to solve: 1-st time I forgot to multiply answer by 2 :) 2-nd time I retyped code by forgot to set 'Pascal' (and it was compile error) 3-rd time I forgot 'begin' :) 4-th time I typed task correctly and it was accepted !!! So, programmers, DO NOT HURRY if you don't want to repeat my funny story :) Edited by author 10.09.2004 00:28 In Poland there is a proverb - "Pospiech jest zlym doradca" - "Hurry is a bad adviser" ;) In Russia we say: "Pospeshish - ludey nasmeshish" - "Making it harry you make people laugh at you". It happens simetimes with everyone. Specially, when current cotest is quite durty-solvable... Don't WORRY :).We forgot READLN in another problem... Do you have solution to problem#1407 Did you show a results of input? N=5; A=2; B=3; Answer should be 30 nanokg; i have read 60 kg. What is it?
the panels need processing of both sides. In Thailand, we say : "Slower, a better knife" Problem Election, my submission are 3 times because of the same story as you !! [ 1st - I forgot to print '%' after floating point ] [ 2nd - I put '%' but forgot to print '\n' ] [ 3rd - It was ACCEPTED !! ] In Persian we say "Ajale kare sheytoone" it means that "hurrying is the way of devil" Edited by author 31.10.2009 01:26 In bulgarian it is "Бързата работа срам за майстора" wicch means "Тhe fast work is a shame for the Master". In Vietnamese we say "Muốn nhanh thì phải từ từ" (which means "if you want to be fast, you must be slower") In russian we say "тише едешь, дальше будешь" (which means "if you go slower, you'll be further) same here.. Edited by author 11.12.2017 21:05 |
what's wrong with this code.....???? | shailendrasky | 1293. Eniya | 13 Dec 2018 08:23 | 6 |
#include<stdio.h> #include<math.h> int main() { int n;
printf("%d\n",scanf("%d",&n)*n*scanf("%d",&n)*n*scanf("%d",&n)*n*2); } you write so complex, the answer is N*A*B*2 Should it work at all? Isn't it unspecified behavior - n is modified 3 times in the same expression? Brother, you should solve it step by step!Don't do all things in printf function.In this way u can easily find you bug! You can follow this method n*a*b*2 |
No subject | Yekaterina | 1293. Eniya | 2 Dec 2016 20:52 | 1 |
Program zadacha; Var a,b,c,n:integer; Begin Readln(n,a,b); c:=a*b*2*n; Write(c); End. |
Help error | Leonid322S | 1293. Eniya | 16 Nov 2016 16:49 | 2 |
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication8 { class Program { static void Main(string[] args) { int N = Convert.ToInt32(Console.ReadLine()); int A = Convert.ToInt32(Console.ReadLine()); int B = Convert.ToInt32(Console.ReadLine()); if (N >= 1 && 100 >= N) if (A >= 1 && 100 >= A) if (B >= 1 && 100 >= B) { Console.WriteLine(N * A * B * 2); } } } } 1) Here is task fragment: "The only line contains integers...." You are reading 3 lines. 2) if (N) if (A) if (B) {...} - else what? Any difference how exactly your program fail in "else" case? I think you should skip parameters check or fail in some specific way - visible and different from regular mistake. Edited by author 16.11.2016 16:53 |
where is wrong | daixinyan | 1293. Eniya | 3 Apr 2016 11:23 | 2 |
import string def excute(): line = raw_input(); my_array = line.split(); result = 2; for element in my_array: # print element; result = result*string.atoi(element); print result; return 0; if __name__ == '__main__': excute(); Edited by author 03.04.2016 11:22 Edited by author 03.04.2016 11:23 caused by printed new line |
whats wrong!!!!! Everything is right | shubham | 1293. Eniya | 14 Mar 2016 05:42 | 4 |
#include<stdio.h> main() { int n, a, b; int weight; while (scanf("%d", n) != EOF || scanf("%d", a) != EOF || scanf("%d",b) != EOF) { weight = n*a*b * 2; printf("%d", weight); } return 0; } 1. You should specify the return type value for the main function: int main() {} 2. Is not necessarry to read the input data until the end of stream. Just read it one time: int n, a, b, w; scanf("%d%d%d", &n, &a, &b); w = n*a*b*2; printf("%d\n", w); Please read scanf documentation. It returns count of read variables. Also - task description means 3 and only 3 integers to read. Why did you use "while" here? The main problem is in "||". You should use "&&" anyway. Otherwise, the shortpath magic happens. |
Help me, please! Pascal... | KOTMAKRUS | 1293. Eniya | 7 Mar 2016 18:44 | 3 |
program en; var a,b,c:byte; BEGIN read(a,b,c); write(b*c*2*5); END. Where my mistake? Test 2 - Wrong Answer... I am stupid.....)) write(b*c*2*a); ..... for 0.001 sec write(a*b*c+a*b*c) |
81 байт | kostan3 (kostan3@spaces.ru) | 1293. Eniya | 4 Sep 2014 21:53 | 5 |
81 байт kostan3 (kostan3@spaces.ru) 4 Sep 2014 21:42 Re: 81 байт kostan3 (kostan3@spaces.ru) 4 Sep 2014 21:42 ахахахах))) 54 байта на паскале Re: 81 байт kostan3 (kostan3@spaces.ru) 4 Sep 2014 21:46 Re: 81 байт kostan3 (kostan3@spaces.ru) 4 Sep 2014 21:49 51 байт (интересно за 50 выйду) Re: 81 байт kostan3 (kostan3@spaces.ru) 4 Sep 2014 21:53 |
The answer is "N*A*B*2" | XiangGuangTe | 1293. Eniya | 1 Mar 2013 10:11 | 7 |
bravo!!! but I wonder if there is a demonstration for this... I'm working on it. there are more problems like this... There was one, Workdays, that is as much as stupid as this one... Read my funny story one topic above and you will understand what is the power of this problem :) easy problem and no-sense. |
0.001 sec? How? | efpies [SPbSETU] | 1293. Eniya | 20 Feb 2013 00:38 | 3 |
Now it is impossible because of other compilator and type of compilation. |
What's wrong? | Eugene | 1293. Eniya | 5 Jul 2012 11:05 | 4 |
Help. What's wrong in this code? using System; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int N, A, B; do { Console.Write("ВВедите N: "); N = int.Parse(Console.ReadLine()); } while (N < 1 || N > 100); do { A = int.Parse(Console.ReadLine()); } while (A < 1 || A > 100); do { B = int.Parse(Console.ReadLine()); } while (B < 1 || B > 100);
int R = ((A*B) * 2)*N; Console.WriteLine(R); } } } > Console.Write("ВВедите N: "); Delete this line. You should not output anything except the answer. Just think how the system can check it otherwise? I deleted that line, but I still get the Crash on the first test((( All three numbers are given in the same line. So, when you try to parse it as a single number, it crashes. |
do not think complicated is the motto of this problem | Anupam Ghosh,Bengal Engg and Sc Uni,MtechIT,2006-09,India | 1293. Eniya | 28 Apr 2008 11:11 | 1 |
|
->AC<-Very interesting AC ;) | alexutz_mircescu | 1293. Eniya | 21 Oct 2007 00:24 | 7 |
You have to calculate A*B*N*2 ;) #include<stdio.h> #include<math.h> long a,b,n; int main() { scanf("%ld%ld%ld",&n,&a,&b); printf("%ld",n*a*b*2); return 0; } //good luck! Thank you very mach!!! I would never done this program with myself! Thank you! :D are you genius! so short AC program... my AC was #include <stdio.h> int main() { int x, y, z; scanf("%d %d %d", &x, &y, &z); printf("%d\n", (((!!((((!!(x&0x1))?y<<0:0) +((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0) +((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x1))?z<<0:0) +((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0) +((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0) )&0x2))?z<<1:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0) +((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0) +((!!(x&0x80))?y<<7:0))&0x4))?z<<2:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0) +((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0) +((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x8))?z<<3:0)+((!!((((!!(x&0x1))?y<<0:0) +((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0) +((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x10))?z<<4:0) +((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0) +((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0) )&0x20))?z<<5:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0) +((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0) +((!!(x&0x80))?y<<7:0))&0x40))?z<<6:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0) +((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0) +((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x80))?z<<7:0)+((!!((((!!(x&0x1))?y<<0:0) +((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0) +((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x100))?z<<8:0) +((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0) +((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0) +((!!(x&0x80))?y<<7:0))&0x200))?z<<9:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0) +((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0) +((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x400))?z<<10:0)+((!!((((!!(x&0x1))?y<<0:0) +((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0) +((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x800))?z<<11:0) +((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0) +((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0) +((!!(x&0x80))?y<<7:0))&0x1000))?z<<12:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0) +((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0) +((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x2000))?z<<13:0)+((!!((((!!(x&0x1))?y<<0:0) +((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0) +((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x4000))?z<<14:0) +((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0) +((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0) )&0x8000))?z<<15:0)) << 1); return 0; } I think that more interesting to take place in struggle for 1 position in rating than to beat begginer I think Alias is just kidding) Without any bad thoughts) Edited by author 20.10.2007 22:19 yes AlexF is right. for me it's just funny. moreover alexutz_mircescu after this post sayed that 1555 is easy problem. |
interesting story ...but that's it ...the answer is n*a*b*2 | Seceleanu Adrian | 1293. Eniya | 6 Nov 2006 17:42 | 2 |
Because a block has two sides; Elementary |