Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7109 - Тэнцүү 5 |
Өгөгдсөн 3 тоон дотроос 5-тай тэнцүү тоонуудын тоог ол.
Input
Нэг мөрөнд Int төрлийн 3 тоо зайгаар тусгаарлагдан өгөгдөнө.
Output
5-тай тэнцүү тоонуудын тоо.
Example
Input:
2 5 5
Output:
2
Нэмсэн: | Bataa |
Огноо: | 2011-05-26 |
Хугацааны хязгаарлалт: | 0.200s |
Эх кодын хэмжээний хязгаарлалт: | 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-11-16 08:17:12
this is bullshit... Im out of here |
|||||||||
2022-11-15 09:42:21
hi Huslenbayraa hehe(= |
|||||||||
2022-11-15 06:57:25
Last Christmas, I gave you my heart But the very next day, you gave it away This year, to save me from tears I'll give it to someone special Last Christmas, I gave you my heart But the very next day, you gave it away (you gave it away) This year, to save me from tears I'll give it to someone special (special) Once bitten and twice shy I keep my distance, but you still catch my eye Tell me, baby, do you recognize me? Well, it's been a year, it doesn't surprise me "Merry Christmas," I wrapped it up and sent it With a note saying "I love you," I meant it Now I know what a fool I've been But if you kissed me now, I know you'd fool me again Last Christmas, I gave you my heart But the very next day, you gave it away (you gave it away) This year, to save me from tears I'll give it to someone special (special) Last Christmas, I gave you my heart But the very next day, you gave it away This year, to save me from tears I'll give it to someone special (special) Oh Oh, oh, baby A crowded room, friends with tired eyes I'm hiding from you and your soul of ice My God, I thought you were someone to rely on Me? I guess I was a shoulder to cry on A face on a lover with a fire in his heart A man under cover but you tore me apart Ooh, ooh, now I've found a real love You'll never fool me again Last Christmas, I gave you my heart But the very next day, you gave it away (you gave it away) This year, to save me from tears I'll give it to someone special (special) Last Christmas, I gave you my heart But the very next day, you gave it away This year, to save me from tears I'll give it to someone special (special!) A face on a lover with a fire in his heart (I gave you mine) A man under cover, but you tore him apart Maybe next year, we'll give it to someone I'll give it to someone special (special!) So long! |
|||||||||
2022-11-14 03:51:48
shine jil bollooshte guys |
|||||||||
2022-11-09 02:47:22
#include <iostream> using namespace std; int main () { int a, b, c, d; cin >> a >> b >> c; d = 0; if ( a == 5 ) d = d + 1; if ( b == 5 ) d = d + 1; if ( c == 5 ) d = d + 1; cout << d << endl; return 0; } |
|||||||||
2022-11-07 08:12:07
#include <iostream> using namespace std; int main() { int a,b,c,s=0; cin>>a>>b>>c; if (a==5) {s+=1;} if (b==5) {s+=1;} if (c==5) {s+=1;} cout<<s; } good answer |
|||||||||
2022-10-27 02:50:28
⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌ ⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌ ⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌ ⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪ ⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡ ⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐ ⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔ ⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘ ⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎ ⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗ ⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷ ⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟ ⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰ ⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊ ⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌ ⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁ ⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀ ⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀ ⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟ ⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾ ⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽ |
|||||||||
2022-06-28 12:19:15
#include <iostream> using namespace std; int main () { int a, b, c, d; cin >> a >> b >> c; d = 0; if ( a == 5 ) d = d + 1; if ( b == 5 ) d = d + 1; if ( c == 5 ) d = d + 1; cout << d << endl; return 0; } im god |
|||||||||
2022-06-24 13:59:02
News Problems Status Ranking Forum SPOJ time: 2022-06-24 13 : 58 : 16 Бодолт илгээх Миний бодолтууд Бүх бодолтууд Шилдэг бодолтууд PDF Жагсаалт руу буцах RGB7109 - Тэнцүү 5 Өгөгдсөн 3 тоон дотроос 5-тай тэнцүү тоонуудын тоог ол. Input Нэг мөрөнд Int төрлийн 3 тоо зайгаар тусгаарлагдан өгөгдөнө. Output 5-тай тэнцүү тоонуудын тоо. Example Input: 2 5 5 Output: 2 Нэмсэн: Bataa Огноо: 2011-05-26 Хугацааны хязгаарлалт: 0.200s Эх кодын хэмжээний хязгаарлалт: 50000B Memory limit: 1536MB Cluster: Cube (Intel G860) Програмчлалын хэлүүд: ADA95 ASM32 BASH BF C CSHARP CPP C++ 4.3.2 C99 CLPS LISP clisp LISP sbcl D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO 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 Өмнөх 1 2 3 4 Дараагийн > 2022-06-21 12:13:13 #include <iostream> using namespace std; main() { int a,b,c,d; cin>>a>>b>>c; d=0; if (a==5) d=d+1; if (b==5) d=d+1; if (c==5) d=d+1; cout<<d; }khandmaa to baatarkhuu 2022-05-11 11:39:47 #include<stdio.h> int main() { int a,b,c,n,i,m,sum; scanf("%d%d%d",&a,&b,&c); if(a==5) { n=1; } else{ n=0; } if(b==5) { i=1; } else { i=0; } if(c==5) { m=1; } else { m=0; } sum=n+i+m; printf("%d",sum); }//dev c++ 2022-04-07 12:15:57 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; int[] arr = new int[3]; for(int i = 0; i < 3; i++) { arr[i] = sc.nextInt(); } for(int i : arr) { if (i == 5) { count++; } } System.out.println(count); } 2022-03-30 12:04:18 eee gulug uassh 2022-03-30 12:03:33 Abdulla bolio bitgii huulaa 2022-03-28 03:54:07 #include<stdio.h> int main(){ int a,b,c,k=0; scanf("%d%d%d",&a,&b,&c); if(a==5) k++; if(b==5) k++; if(c==5) k++; printf("%d",k); } jich so ez ahaasn huul main minii duu 2022-03-23 10:09:38 #include<stdio.h> int main() { int a, b, c, k=0, l, p, f; scanf("%d %d %d", &a, &b, &c); if(a==5) k++; if(b==5) k++; if(c==5) k++; printf("%d",k); return 0; } 2021-12-13 18:48:50 eeezz ym baigaa uugna Jich: JS var a = [5, 5,5,4]; var num = 0; for(var i = 0; i<a.length; i++){ if(a[i] === 5){ num = num + 1; } } console.log(num) Last edit: 2021-12-13 18:49:34 2021-12-04 04:23:22 fuck 2021-10-17 05:42:50 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = 0; int[] arr = new int[3]; for(int i = 0; i < 3; i++) { arr[i] = sc.nextInt(); } for(int i : arr) { if (i == 5) { count++; } } System.out.println(count); } Leave a Comment |Notes:| 1. Don't post any source code here.| 2. Please be careful, leave short comments only. Don't spam here.| 3. For more discussion (hints, ideas, solutions) please visit our forum.| 4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).| About SPOJ RSS © Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs. |
|||||||||
2022-06-21 12:13:13
#include <iostream> using namespace std; main() { int a,b,c,d; cin>>a>>b>>c; d=0; if (a==5) d=d+1; if (b==5) d=d+1; if (c==5) d=d+1; cout<<d; }khandmaa to baatarkhuu |