Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7002 - Гурвалжин |
Өгөгдсөн гурвалжны периметрийг ол.
Input
Гурвалжны талууд бүхэл тоогоор нэг мөрөнд зайгаар тусгаарлагдан өгөгдөнө.
Output
Гурвалжны периметр.
Example
Input:
3 4 5
Output:
12
Нэмсэн: | Bataa |
Огноо: | 2011-01-15 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE |
hide comments
|
||||||||||||||
2022-10-27 08:45:08
E |
||||||||||||||
2022-10-27 02:33:08
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c, p; cin>>a>>b>>c; p=a*b*c; cout<<p<<endl; return 0; } |
||||||||||||||
2022-10-25 10:35:18
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,s,c; scanf("%d%d%d",&a,&b,&c); s = a+b+c; printf("%d\n",s); } |
||||||||||||||
2022-10-17 03:22:56
so ez |
||||||||||||||
2022-10-03 03:27:37
int main() { int a, b, c, p; cin>>a>>b>>c; p=a+b+c; cout<<p<<endl; return 0; }nice bro |
||||||||||||||
2022-09-12 09:58:22
https://play.typeracer.com?rt=2i6fudm85h |
||||||||||||||
2022-09-12 09:58:17
https://play.typeracer.com?rt=2hk59qvwl2 |
||||||||||||||
2022-08-18 05:20:51
#include<bits/stdc++.h> using namespace std; int main(){ int n,k,x,y; cin>>n>>k>>x>>y; auto ans = x*min(n,k) + y*max(0,n - k); cout<< ans<<'\n'; return 0; } |
||||||||||||||
2022-05-30 08:09:36
n=int(input()) b=(n + 1) * (n + 2) * (n + 3) * (n + 4) * (n + 5) // 120 print(b) |
||||||||||||||
2022-05-18 06:23:49
https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush!https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush!https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush!https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush!https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush!https://www.typerush.com/in.html?in=ad893e6bedd73178e&c I typed 55 WPM! Try and beat my score in TypeRush! |