結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2019-10-08 21:41:39 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 4,606 ms |
コンパイル使用メモリ | 65,008 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 18:09:22 |
合計ジャッジ時間 | 5,073 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
import sequtils, strutils let s: string = stdin.readline b: seq[string] = mapIt(0..<8, stdin.readline) o: string = "oda" y: string = "yukiko" var cnt: int = 0 ans: string for i in 0..<8: cnt += b[i].count(".") if cnt mod 2 == 0: ans = if s == o: o else: y else: ans = if s == o: y else: o echo ans