| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 89423 | sh25_zhangjiajia | 回文三位数 | C++ | Accepted | 1 MS | 244 KB | 457 | 2026-06-05 14:22:53 |
#include <iostream> using namespace std; bool isPrime(int x) { if (x < 2) return false; for (int i = 2; i * i <= x; ++i) { if (x % i == 0) return false; } return true; } bool isPalin(int x) { int a = x / 100; int c = x % 10; return a == c; } int main() { for (int i = 100; i <= 999; ++i) { if (isPalin(i) && isPrime(i)) { cout << i << endl; } } return 0; }