結果

問題 No.1658 Product / Sum
ユーザー GetDigit()GetDigit()
提出日時 2022-11-06 11:50:34
言語 C++14
(gcc 12.2.0 + boost 1.81.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 1,427 ms
コンパイル使用メモリ 163,292 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-07-06 07:02:45
合計ジャッジ時間 4,399 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

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

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