結果

問題 No.796 well known
ユーザー trineutron
提出日時 2020-02-25 21:20:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 2,577 ms
コンパイル使用メモリ 190,328 KB
最終ジャッジ日時 2025-01-09 02:13:03
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~

ソースコード

diff #

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

int main() {
    int n;
    scanf("%d", &n);
    putchar('1');
    for (int i = 1; i < n; i++) {
        putchar(' ');
        putchar('3');
    }
}
0