結果
問題 |
No.308 素数は通れません
|
ユーザー |
![]() |
提出日時 | 2015-12-01 22:04:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 1,438 ms |
コンパイル使用メモリ | 159,224 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 06:36:42 |
合計ジャッジ時間 | 3,669 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 92 WA * 15 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) using namespace std; int main(void){ string s; cin >> s; int ans=8; if(s.size()<=2){ int n=stoi(s); if(n==4) ans=3; if(n==6) ans=5; if(n==8||n==9||n==10||n==15||n==16||n==22) ans=7; } cout << ans << endl; return 0; }