結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-30 17:25:44 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 431 bytes |
| コンパイル時間 | 2,836 ms |
| コンパイル使用メモリ | 66,420 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 05:42:22 |
| 合計ジャッジ時間 | 2,922 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'strutils' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import sequtils, strutils, math
var
s:string = readLine(stdin)
b:seq[string] = @[]
stones:int
for i in 0..<8:
b.add(readLine(stdin))
for i in b:
for j in i.items:
if j.in(['w','b']):
stones += 1
if stones mod 2 == 0:
if s == "yukiko":
echo "yukiko"
else:
echo "oda"
elif stones mod 2 == 1:
if s == "yukiko":
echo "oda"
else:
echo "yukiko"