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
#include
#include
using namespace std; int main() { vector
all_palindromes; for(int i = 0; i <= 99999; i++) { int pom = i; vector
v; while(pom > 0) { v.push_back(pom % 10); pom /= 10; } bool is_palindrom = true; for(int j = 0; j < v.size() / 2; j++) { if(v[j] != v[v.size() - j - 1]) { is_palindrom = false; break; } } if(is_palindrom == true) { all_palindromes.push_back(i); } } for(int i = 0; i < all_palindromes.size(); i++) { cout << all_palindromes[i] << " "; } int S, E; cin >> S >> E; queue
q; q.push(S); q.push(0); return 0; } // 1331 // {1, 3, 3, 1} // 0 3 // 4 - 0 - 1
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)