結果
問題 | No.1256 連続整数列 |
ユーザー |
![]() |
提出日時 | 2020-10-16 21:24:58 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 518 ms |
コンパイル使用メモリ | 66,104 KB |
最終ジャッジ日時 | 2025-01-15 08:02:41 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 WA * 3 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 3 | main(){ | ^~~~
ソースコード
#include<iostream> using namespace std; main(){ long long n; cin >> n; for(int i = 2; i * i <= n; i++){ if(n % i == 0){ cout << "YES" << endl; return 0; } } cout << "NO" << endl; }