結果

問題 No.1114 足し算盆に返らず
ユーザー Enjapma_kyopro
提出日時 2020-07-17 23:46:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 1,654 ms
コンパイル使用メモリ 165,200 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 04:37:04
合計ジャッジ時間 15,345 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

typedef long long ll;

using namespace std;

int main(){
    ll n;
    cin >> n;
    ll c = 1;
    while(c <= n){
        cout << c << " ";
        c *= 3;
    }
    cout << endl;
    return 0;
}
0