Submission #2757161
Source Code Expand
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n = 98; for(int i = 0; i <= 98; i++) { int sum = 0; for(int j = 1; j <= i; j++) { if (i % j == 0) { sum += j; } } if (sum == n) { cout << i << " "; } } cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | J - クッパ |
User | kakira |
Language | C++14 (GCC 5.4.1) |
Score | 1 |
Code Size | 352 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 1 / 1 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 01-01.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
01-01.txt | AC | 1 ms | 256 KB |