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