Submission #3195576
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define max(a,b) ((a)>(b)?(a):(b)) #define min(a,b) ((a)<(b)?(a):(b)) typedef long long LL; int main(){ list<int> ans; int tmp=0; for(int i=1;i<10000;i++){ tmp=0; for(int j=1;j<=i;j++){ if(!(i%j)) tmp+=j; } if(tmp==98) ans.push_back(i); } for(auto itr=ans.begin();itr!=ans.end();){ cout << (*itr); itr++; if(itr!=ans.end()) cout << " "; else cout << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | J - クッパ |
User | yamunaku |
Language | C++14 (GCC 5.4.1) |
Score | 1 |
Code Size | 497 Byte |
Status | AC |
Exec Time | 147 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 | 147 ms | 256 KB |