結果
問題 |
No.278 連続する整数の和(2)
|
ユーザー |
![]() |
提出日時 | 2015-10-12 19:20:41 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 401 bytes |
コンパイル時間 | 666 ms |
コンパイル使用メモリ | 68,180 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-21 07:18:58 |
合計ジャッジ時間 | 3,880 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 15 |
ソースコード
#include<iostream> #include<vector> #include<set> #include<map> #include<list> #include<stack> #include<bitset> #include<array> #include<algorithm> #include<cstdio> #include<string> #include<cstdlib> #define D long long #define U unsigned using namespace std; D n, m,a, b, d, e, x, y, z; D i, j, k; int main() { cin >> a; for (i = 1; i <= a; i+=2) { if (a%i == 0) n+=i; } cout << n << endl; }