結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
subsn
|
| 提出日時 | 2023-06-23 11:15:25 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 29,128 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-08 16:35:21 |
| 合計ジャッジ時間 | 717 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 RE * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:5: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
3 | scanf("%s",s);
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | main(i,n){
main.c:4:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
4 | n = strlen(s);
| ^~~~~~
main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
+++ |+#include <string.h>
1 | main(i,n){
ソースコード
main(i,n){
char s[101];
scanf("%s",s);
n = strlen(s);
for(i=0;i<n-2;i++){
if(s[i]==s[i+1]&&s[i]==s[i+2]){
s[i]=='O'?puts("East"):puts("West");
return 0;
}
}
puts("NA");
}
subsn