結果

問題 No.1256 連続整数列
ユーザー msm1993
提出日時 2020-10-23 15:42:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 73 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 59,112 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-20 10:45:12
合計ジャッジ時間 1,631 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 40
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | main(){int a;std::cin>>a;std::cout<<(a-1?"YES":"NO");}
      | ^~~~

ソースコード

diff #

#include<iostream>
main(){int a;std::cin>>a;std::cout<<(a-1?"YES":"NO");}
0