Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
ABR0088V - Эхлэл ба төгсгөл |
n натурал тоо өгөгдөв. n тооны эхний болон эцсийн цифрүүдийн байрыг соль.
Input
n натурал тоо өгөгдөнө (n < 4 000 000 000)
Output
эхний ба эцсийн цифрүүдийн байрыг солиход үүссэн тоог хэвлэнэ
Example
Input: 1960 Output: 961
Нэмсэн: | sw40 |
Огноо: | 2007-11-28 |
Хугацааны хязгаарлалт: | 1s |
Эх кодын хэмжээний хязгаарлалт: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Програмчлалын хэлүүд: | Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET |
Эх сурвалж: | Абрамов С. А. |
hide comments
|
|||||
2024-02-22 07:42:04
#include <bits/stdc++.h> using namespace std; int main () { string ss,st,sd; long long a,b,c,d,n,m,i=1,j,k,arr[10]; scanf("%d" ,&a); while(a>0) { arr[i]=a%10; a=a/10; i=i+1; } b=i-1; if(arr[1]!=0) printf("%d" ,arr[1]); for(i=b-1;i>1;i--) printf("%d" ,arr[i]); printf("%d" ,arr[b]); return 0; } |
|||||
2024-02-19 05:05:01
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣖⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠿⠿⠛⠟⠻⠿⠩⠓⠛⠉⠛⠩⠝⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢟⡭⢍⠓⡙⠃⠃⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠠⢄⠉⠃⠉⢽⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⡽⣷⣿⣿⣿⠙⠆⠱⢈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠤⠀⠀⠀⠈⢉⠛⢻⣿⣿⣿⣿⣿⣿⣿⣿⣧⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡿⣞⣯⢟⡧⢿⣿⣄⠣⠈⠐⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠐⠀⡀⠀⠀⠐⢠⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡞⣧⢻⡜⣮⢻⣼⣿⣿⠡⠄⡀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠻⠀⠀⠃⠀⠀⠀⠀⠀⠈⠘⢹⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠳⢮⡙⣎⣧⢻⢼⣻⣟⣿⡏⠐⠄⡐⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⡿⣞⣏⢧⡹⢮⡝⣿⣿⣿⣿⠛⠀⠀⠄⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⡀⢧⡿⣿⣿⣿⣿⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⢽⣧⡟⣾⣹⢧⡟⣿⢺⣽⡿⠌⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡧⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⢎⣿⢾⡿⣱⣿⣧⡿⠾⠟⢁⠂⠀⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡗⣧⣿⣿⣿⣿⣿⣿⣿⡧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⢿⣾⣟⣿⣿⣿⠿⡐⠌⡌⠀⡀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⠎⣷⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿⣿⣿⣿⣿⣿⣯⣿⣳⡽⣞⣿⣯⣷⡐⢈⠰⢀⠁⠀⠠⠐⡈⠄⠠⢀⠐⠈⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠀⢀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠒⢿⣿⣿⣿⣿⣿⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣿⣿⣳⢯⣷⣻⣿⣿⣿⣿⣿⣿⣶⣧⣌⢠⠑⣠⠂⠜⡐⢠⠈⢂⠡⠀⠌⠀⡐⢀⡀⢀⠢⢀⠚⢒⣲⣶⣿⣿⣷⣿⣿⣿⣿⣷⣶⣀⠀⠀⠀⠚⢿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⡿⣽⣿⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣾⡥⢧⡌⣃⠆⠡⢂⠰⣐⡎⠽⣲⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⠆⠀⠘⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⠿⣧⣭⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⢿⣳⢞⡶⣭⣧⣈⣼⣃⣯⡟⣽⡹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣽⣿⣿⣿⣿⡿⢂⣀⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⡿⢯⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⡽⣟⣾⣿⠆⠡⢼⣿⣿⣟⡶⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠿⢿⣿⣿⣿⣿⡾⢍⠆⠀⠀⢸⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣟⢧⣻⣽⣿⣿⣿⣿⡿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠙⠀⠀⠈⢹⣿⣯⣿⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣶⣸⣿⣿⣿⣿⣯⣍⣰⣶⣿⢹⣿⣿⣿⠻⠿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣿⣿⡿⣜⣣⢏⡿⣿⣿⣿⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢂⠄⣂⣃⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⠿⠈⢉⣤⣉⡹⠛⠉⠉⠶⠂⠸⣿⣿⣿⡻⣝⢿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⡟⣴⣯⢿⣽⣿⣯⣿⣻⡟⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡗⣈⠂⠀⣨⡄⠀⡏⠒⣿⣿⣿⣿⣿⣿⣽⣿⣭⣤⣤⣶⣶⢿⠋⣭⠹⢿⣶⣶⡔⢶⣾⣿⣿⣿⣿⢎⡽⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⡿⡼⣯⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢠⠀⡐⠉⢀⠘⡜⢡⠀⡉⠏⡉⢉⠍⣙⢫⡝⣻⢛⣻⠰⠀⠀⠀⢀⠀⠚⣿⣷⣥⠘⣿⣿⣿⣾⡋⢼⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⡿⣵⣳⡻⣵⢏⡿⢿⡿⠿⣿⣿⣿⡿⢟⠫⢖⣹⣿⣿⣟⣿⣿⢜⡢⠐⠂⢀⠴⡡⢂⠂⡁⠒⡰⢠⠚⣤⢣⠚⡥⢓⢌⠂⡉⡄⠀⠀⠀⠀⠈⠹⣿⣷⣸⣿⣿⣾⠍⢹⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣿⢶⣯⠷⡭⠞⡤⢁⠀⠀⢀⠀⠂⡔⡌⠳⣌⣾⣿⣳⢿⣳⣿⢺⠅⠄⠀⠸⢄⠡⢂⡅⠂⠡⣀⠡⡉⠤⢩⠙⡰⣩⣘⣲⡄⠐⡀⠀⠀⠀⠀⢢⠘⢻⣽⣶⣿⠍⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣟⡾⣹⡱⢋⡔⢠⠠⣁⠢⢌⣲⠴⣭⣳⣶⢿⣳⣿⣻⣗⡟⣌⠛⡀⠀⠁⠀⢎⡒⡴⠁⠡⠘⢲⣷⣷⣷⣾⣤⣥⣤⣈⠀⢄⠰⢡⠤⠠⡤⠀⢻⡆⢻⡧⠃⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⡝⣾⡱⣍⠧⡘⢆⠲⣤⢷⣯⣼⣿⢷⣻⣭⣳⡽⣿⣻⡽⡚⢄⠫⠥⠐⢀⠈⠤⠡⢑⠂⠃⡁⢊⡷⢉⠻⣿⣿⣿⣿⣿⣿⡦⡝⢦⢚⣋⡵⣷⣸⣷⢹⠓⠀⠀⠀⣯⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⡿⣽⢣⡟⣬⣳⣹⣮⣷⣿⣿⣿⡿⣯⡿⣽⣳⢟⣾⣻⣽⢣⡏⢸⠐⢢⠁⡦⠂⢁⡑⣈⠆⡱⣘⣼⠃⠌⡒⡹⢌⡟⣿⣿⣿⣿⣽⣯⢶⡏⠈⣿⣧⣹⣼⣷⡀⢤⡬⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣯⣿⣗⡿⣼⣻⣵⣷⣿⣿⣿⣿⣿⣽⡷⣿⣯⢿⣞⣧⣟⣾⢧⣟⣈⠛⢢⠏⡐⣄⣶⣶⣷⣾⡗⢻⠁⠂⡐⢡⠱⣉⠞⣵⢺⣿⣿⣿⣿⣿⣿⣦⠼⣿⣯⣧⠒⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢯⣿⣻⣷⣿⣿⣿⣿⣿⣿⣿⣿⡾⣿⢷⣿⣟⣯⣿⣾⣿⣿⣿⣿⣶⣷⣾⣽⣿⣿⣿⠻⢛⡑⢢⠘⣀⠢⣁⣳⣬⣧⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣷⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⣳⢿⣻⣯⣿⣾⣿⣿⣿⣟⡾⣵⣿⣿⢿⣋⠓⢢⡘⣤⣼⣤⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣽⡇⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣯⣿⣿⢻⡏⡻⢿⣟⣿⣿⣿⣿⣿⣿⣯⣟⣷⣻⣟⣷⣿⣾⡿⣿⢿⣛⣩⣴⣤⣿⣶⣿⣿⣾⡿⢿⣿⣟⣿⣿⣿⣿⡿⣿⣿⣿⡿⠽⠬⣷⢿⡾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣎⣿⣧⢻⣞⣯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣞⣷⢿⣜⣧⣛⣧⣯⣽⣾⡾⣟⣿⠉⠰⡿⠟⡏⢹⣿⣿⠋⠴⡵⢯⣿⠻⢾⣹⡟⣾⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⡼⣿⣬⢿⣿⣿⣿⣿⣿⡍⠙⠓⠻⣿⠛⢻⡿⠿⠿⠿⢿⡿⠛⠛⠻⡏⠂⠻⠛⠀⠀⠃⠀⣡⣿⡿⣃⠜⡢⢇⣽⡟⠬⣣⣿⣻⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢳⣿⢿⣷⣏⢿⣧⢿⣿⣿⣿⣿⣿⡄⠀⠀⠁⠀⠘⠇⠀⠀⠀⢸⠁⠀⠀⠀⠃⠀⠀⠀⠀⠀⢄⣴⣿⣿⣓⠩⣰⢫⣿⣿⠩⣸⣟⣾⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⢿⣯⣿⣘⣿⡞⣿⣟⣿⣿⣿⣿⣿⣄⣀⠀⠀⠀⠀⠀⠀⠘⠀⠀⠀⠀⠀⣀⣀⣤⣠⣴⣿⣿⣛⣧⡇⠘⢄⡆⣿⠛⢤⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⣿⣿⣎⢿⣧⣿⡾⣽⣿⣿⣿⣿⣿⣿⣿⣧⣄⣀⣀⣠⣤⣤⣤⣤⣾⡿⣿⡟⠿⠤⣼⢳⣻⣾⠳⠓⠨⣾⠟⣻⣾⠟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢿⣿⡞⣿⡾⣟⣷⣻⣿⣿⣿⣿⣿⡛⠻⠿⠿⢿⣿⣿⠿⡿⠟⠿⠇⠈⠁⢀⡐⣎⣿⡟⠠⠁⠀⠠⡿⢿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣞⣷⣿⣞⣿⣟⣿⣿⣿⣟⡿⣿⡠⢤⣀⠈⠄⡀⡀⠀⠤⢦⢀⡭⣉⣗⡿⢿⠀⠄⡀⣀⢸⠡⣿⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣠⣶⣿⣿⣿⣿⣿⣿⡾⣟⡿⣞⣿⢿⣝⠻⢿⣿⣯⣷⣏⣟⣿⣛⣟⣛⣽⡹⣜⣮⣼⠽⠋⠔⢠⠎⠔⡁⢠⠇⠷⣿⢟⣛⢋⠻⣤⣠⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣴⣾⣿⠿⣿⣟⢾⣻⣿⣿⣿⣿⣿⣿⢻⡽⣾⢿⣻⢿⢦⡙⡜⣣⢛⡛⠜⡹⢘⠣⢦⠕⠁⡂⠐⠈⠀⡰⠃⢠⠀⡆⠋⣘⣿⣏⠜⠠⠉⡀⢻⣿⣶⡉⠒⠤⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣴⣾⣿⡿⣟⣿⣿⣿⣿⣿⣏⣿⣿⣿⣿⣿⣿⣿⣿⣿⣻⡽⣚⣯⢿⣺⡹⡜⣡⠳⣌⠳⢌⣣⡝⡱⢊⡱⠀⢢⢘⣀⠤⢤⠊⠠⢁⣊⣸⣿⡗⠨⢁⠐⠠⢸⣿⣛⠛⠣⠶⣀⣈⠑⠂⠤⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣴⣾⣿⣿⣿⣿⣿⡿⢿⣽⣿⣿⣟⡞⣦⣳⣿⣿⢿⠾⣿⣿⣿⣿⣿⣿⣷⡏⡷⣻⢲⡕⢧⢡⠣⠤⡉⠷⢦⢏⡑⠢⡍⠇⠐⠸⠀⢆⡞⢀⡜⣵⣿⣿⣾⣅⠳⡠⠀⠁⢘⣿⣯⠀⠀⠀⠀⠈⠙⠷⢳⣒⣆⡙⡒⠄⢀⡀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⣀⣠⣴⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣻⢯⣟⡿⣼⣿⣿⣽⣚⢶⣹⣿⠿⣩⣿⣿⣿⢿⣻⣿⣿⣿⣷⢣⢛⠻⣜⡆⢫⢐⠃⢱⠈⡅⣋⣰⠡⠇⠀⠘⠀⠀⡎⢀⡾⣶⣿⣿⢿⣿⣿⣿⡴⠀⠀⢸⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠣⠿⢍⣛⠳⢄⣀⠀⠀⠀⠀ ⢾⣿⣿⣳⣶⣷⣶⣿⣿⣿⣏⣿⣿⣿⣿⡿⣽⣻⣿⢿⣾⣿⣿⣷⡭⣷⣹⣷⣟⣿⣿⣿⣻⡿⣿⢿⣿⣿⣿⣏⡾⡱⡸⠜⣂⠆⢎⠠⠒⠠⡀⢀⠀⢀⠀⡐⠀⠌⣡⣾⣽⣿⡟⣿⣇⠸⣿⣿⣿⣄⡆⢸⣿⠷⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠿⣻⣷⣤⣀⡀ ⣸⣿⣾⣿⣿⣿⣿⣿⣿⡞⡵⣿⣿⣿⣿⣽⣷⢫⡟⡼⣻⣾⣿⣿⡽⣯⣽⣿⣿⣿⣿⣟⣿⣽⡿⣿⣽⣻⣿⣿⣿⢾⡱⣊⢔⠪⢄⠣⡈⠡⠐⠂⠌⢠⠏⠥⢞⣗⣳⣿⣿⠯⡝⡼⡧⠄⠀⣿⣿⣿⣿⣦⣈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠿⣿⣿ ⣿⣿⣿⣿⣿⣿⣿⣟⡿⣽⡳⣿⣿⣿⣿⢾⡭⣟⡟⡼⣹⣿⣿⣿⠼⣯⣟⣿⣿⣿⣿⣟⣿⣾⣻⣽⣞⡷⣿⣿⣿⣿⣷⣷⢬⠚⡤⠒⡄⠣⣝⡶⠬⢶⢶⣿⣿⣿⣿⣿⢧⡉⡗⣘⢻⡁⢂⠀⠘⠿⣿⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢹ ⣿⣿⣿⣿⣿⣿⣷⣿⣽⣟⡷⣽⣻⣿⣯⣟⢾⣭⣛⡜⣽⣿⣿⣿⣿⣳⢯⣿⣿⣿⣷⣿⣯⣿⣻⢷⣯⣟⡿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣯⣿⣶⣿⣿⣿⣿⡿⣿⢢⠑⣬⣤⢻⠁⠀⠀⠐⢲⡞⠀⠀⡀⡀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨ Last edit: 2024-02-19 05:06:59 |
|||||
2013-02-23 03:42:51 up24
#include <cstdio> #include <math.h> int n,b,l,k,z; int main () { scanf ("%d",&n); l=(n); z=1; k=n%10; b=0; while (n>9) { n=n/10; b=n; z=z*10; } printf ("%d",k*z+b+l-k-b*z); return 0; } |
|||||
2013-02-23 03:42:34 up24
#include <cstdio> #include <math.h> int n,b,l,k,z; int main () { scanf ("%d",&n); l=(n); z=1; k=n%10; b=0; while (n>9) { n=n/10; b=n; z=z*10; } printf ("%d",k*z+b+l-k-b*z); return 0; } |
|||||
2013-02-08 07:50:05 ganaa
#include <stdio.h> #include <math.h> #include <stdlib.h> main(){ int n; scanf("%d", &n); int first = n; int rest = 1; while(first > 9){ first = first/10; rest = rest*10; } int last = n%10; n = n/10; n = n*10; n = n+first; n = n%rest; n = last*rest+n; printf("%d", n); system("pause"); return 0; } |
|||||
2012-11-02 12:56:44 Tso .
#include <stdio.h> #include <math.h> #include <stdlib.h> main(){ int n; scanf("%d", &n); int first = n; int rest = 1; while(first > 9){ first = first/10; rest = rest*10; } int last = n%10; n = n/10; n = n*10; n = n+first; n = n%rest; n = last*rest+n; printf("%d", n); system("pause"); return 0; } |
|||||
2012-10-21 15:01:36 Tso .
rokit Last edit: 2012-11-02 12:57:33 |
|||||
2012-04-26 04:40:22 Dashnym
her copydaj bn |
|||||
2012-04-16 06:51:00 enhtor
#include<stdio.h> #include<stdlib.h> int main(){ long int n,a,count=0; long int c=1; scanf("%d",&n); int b=n; a=b%10; while(b>=10){ count++; b=b/10; } for(int i=0; i<count; i++){ c=c*10; } int e=n/c; int u=n%c; a=a*c; int z=(a+u)/10; z=z*10+e; printf("%d", z); system("pause"); return 0; } |
|||||
2012-01-25 07:35:41 muba
#include<stdio.h> #include<stdlib.h> int main(){ long int n,a,count=0; long int c=1; scanf("%d",&n); int b=n; a=b%10; while(b>=10){ count++; b=b/10; } for(int i=0; i<count; i++){ c=c*10; } int e=n/c; int u=n%c; a=a*c; int z=(a+u)/10; z=z*10+e; printf("%d", z); system("pause"); return 0; } ug ni zugeer ajilaal bgam tehdee yavuulhaar hurvuultiin aldaa gl bgam daa gj Last edit: 2012-01-25 07:36:21 |