結果

問題 No.1658 Product / Sum
ユーザー GetDigit()GetDigit()
提出日時 2022-11-06 11:49:10
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 1,463 ms
コンパイル使用メモリ 163,096 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-27 08:01:03
合計ジャッジ時間 4,580 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 WA -
testcase_05 AC 5 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 WA -
testcase_13 AC 2 ms
4,380 KB
testcase_14 WA -
testcase_15 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int N,K;
    scanf("%d %d",&N,&K);
    for(int i=0;i<N-2;i++){
        printf("1 ");
    }
    printf("%d ",K+1);
    printf("%ld",K*K-K+K*N);
}
0