Submission #3581936
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ bool f=true; for(int i=1;i<=98;i++){ int sum=0; for(int j=1;j<=i;j++){ if(sum>98) break; if(i%j==0) sum+=j; } if(sum==98){ cout << i << ((f)?" ":""); if(f) f=false; } } cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | J - クッパ |
User | MATSUMAT |
Language | C++14 (GCC 5.4.1) |
Score | 1 |
Code Size | 325 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 |