結果
| 問題 | No.667 Mice's Luck(ネズミ達の運) |
| コンテスト | |
| ユーザー |
toto
|
| 提出日時 | 2025-03-28 16:09:04 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 40,328 KB |
| 実行使用メモリ | 9,288 KB |
| 最終ジャッジ日時 | 2026-07-08 00:12:10 |
| 合計ジャッジ時間 | 1,451 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 10 |
ソースコード
#include <stdio.h>
#include <string.h>
int main(){
char str[1000000];
scanf("%s",str);
int len = strlen(str);
double maru = 0;
double batu = 0;
for(int i = 0;i < len;i ++){
if(str[i] == 'x'){
batu++;
}else{
maru++;
}
}
for(int i = 0;i < len;i ++){
printf("%lf\n",batu / len);
}
}
toto