結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-07 14:21:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 124 bytes |
| コンパイル時間 | 3,146 ms |
| コンパイル使用メモリ | 148,088 KB |
| 最終ジャッジ日時 | 2025-02-24 16:25:44 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 25 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(){int N;puts(atcoder::internal::is_prime_constexpr(scanf("%d",&N)*N)?"YES":"NO");}
| ^~~~
ソースコード
#include<ios>
#include<atcoder/all>
main(){int N;puts(atcoder::internal::is_prime_constexpr(scanf("%d",&N)*N)?"YES":"NO");}