結果

問題 No.3533 Difficult Counting Problem?
コンテスト
ユーザー sashiming
提出日時 2026-05-15 11:57:34
言語 C++23
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 89 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,170 ms
コンパイル使用メモリ 146,352 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2026-05-15 11:57:38
合計ジャッジ時間 2,302 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 1 WA * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
main.cpp:2:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int n,a;main(){for(std::cin>>n;n--;)std::cin>>a,std::cout<<(a<2)<<' ';}
      |         ^~~~

ソースコード

diff #
raw source code

#import<iostream>
int n,a;main(){for(std::cin>>n;n--;)std::cin>>a,std::cout<<(a<2)<<' ';}
0