結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-06-23 17:50:05 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 640 bytes |
| 記録 | |
| コンパイル時間 | 217 ms |
| コンパイル使用メモリ | 39,396 KB |
| 最終ジャッジ日時 | 2026-02-22 03:40:05 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
// yukicoder: No.88 次はどっちだ
// 2019.6.23 bal4u
#include <stdio.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
void ins(char *s) { // 文字列の入力 スペース以下の文字で入力終了
do *s = gc();
while (*s++ > ' ');
*(s-1) = 0;
}
void outs(char *s) { while (*s) pc(*s++); }
int main()
{
int r, id, f;
char s[10], *c;
char *nm[2] = {"oda\n", "yukiko\n"};
ins(s);
id = (*s == 'y');
f = 0;
r = 8; while (r--) {
ins(c = s);
while (*c) if (*c++ != '.') f++;
}
if (f & 1) id = !id;
outs(nm[id]);
return 0;
}
bal4u