結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-10 13:46:22 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 34,560 KB |
| 最終ジャッジ日時 | 2026-02-23 23:34:32 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 1 WA * 23 |
ソースコード
#include <stdio.h>
int main(void){
int c=-1,w=0,p;
while((p=getchar())!=EOF){
scanf("%d",&p);
if(p!='c'){
c++;
}else w++;
}
if(c<w){
printf("%d",c);
}else printf("%d",w);
return 0;
}