結果
問題 |
No.71 そろばん
|
ユーザー |
👑 |
提出日時 | 2019-11-23 10:47:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 573 ms |
コンパイル使用メモリ | 63,616 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 06:49:02 |
合計ジャッジ時間 | 1,382 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | WA * 20 |
ソースコード
#include <iostream> using namespace std; int main(){ int n;cin>>n; int ans = n; for(int i = 1; n >= i; i++){//下の数 ans = max(ans,(i+1)*(n-i)+i); } cout << ans << endl; }