結果
問題 |
No.1256 連続整数列
|
ユーザー |
![]() |
提出日時 | 2020-10-16 21:24:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 582 ms |
コンパイル使用メモリ | 67,112 KB |
最終ジャッジ日時 | 2025-01-15 08:01:19 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 3 WA * 23 |
コンパイルメッセージ
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 << "NO" << endl; return 0; } } cout << "YES" << endl; }