結果
問題 |
No.689 E869120 and Constructing Array 3
|
ユーザー |
|
提出日時 | 2018-05-18 23:36:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 399 bytes |
コンパイル時間 | 1,463 ms |
コンパイル使用メモリ | 165,776 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 14:02:23 |
合計ジャッジ時間 | 5,804 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 6 RE * 7 |
ソースコード
#include <bits/stdc++.h> using std::cout; using std::endl; using std::cin; int n; int main(){ int n; cin >> n; for(int i = 1; i <= 250; i++){ if((n + i * i) % i) continue; int B = (n + i * i) / i - i; if(i + B > 250) continue; for(int j = 0; j < i; j++) cout << 3 << " "; for(int j = 0; j < B; j++) cout << 2 << " "; cout << endl; return 0; } assert(false); return 0; }