Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
using namespace std; int main() { int n,x,a, i1 = -1,poi,poa; cin>>n; a=0; for(int i=1000;i<=9999;i++) { poi=i; poa=0; while(i>0) { x = i % 10; i /= 10; if(x==0) { a+=6; } if(x==1) { a+=3; } if(x==2) { a+=5; } if(x==3) { a+=5; } if(x==4) { a+=4; } if(x==5) { a+=5; } if(x==6) { a+=5; } if(x==7) { a+=3; } if(x==8) { a+=7; } if(x==9) { a+=5; } } i=poi; if(n==a) { i1 = i; } a=poa; } cout << i1 << endl; return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)