結果
| 問題 |
No.211 素数サイコロと合成数サイコロ (1)
|
| コンテスト | |
| ユーザー |
asdfghjkl;
|
| 提出日時 | 2020-03-15 00:07:10 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| コンパイル時間 | 463 ms |
| コンパイル使用メモリ | 31,360 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-23 21:29:50 |
| 合計ジャッジ時間 | 1,020 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 8 |
ソースコード
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include <math.h>
int main(void){
int yyes=0;
int k,a[10]={2,3,5,7,11,13},b[10]={4,6,8,9,10,12};
scanf("%d",&k);
for(int i=0;i<6;i++){
for(int j=0;j<6;j++){
if(a[i]*b[j]==k){yyes++;}
}
}
if(yyes==0){printf("0\n");return 0;}
printf("%lf\n",1.0/yyes);
}
asdfghjkl;