結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー hotman78hotman78
提出日時 2020-02-28 20:09:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 691 ms
コンパイル使用メモリ 62,708 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 17:42:00
合計ジャッジ時間 1,024 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
using namespace::std;
int main(){
    auto call=[](auto f,auto... args){return f(f,args...);};
    auto f=[&](auto f,int n)->int{return n?n+f(f,n-1):0;};
    cout<<call(f,100)<<endl;
}
0