結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー |
|
提出日時 | 2018-03-23 23:11:30 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 234 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 3,046 ms |
コンパイル使用メモリ | 65,196 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:24:21 |
合計ジャッジ時間 | 5,415 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
/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]
ソースコード
import sequtils, strutilsvarinput = readLine(stdin)x:into:intfor i in input:if i == 'x':x += 1elif i == 'o':o += 1for i in input:if i == 'x':echo 100 / ((x + o) / o)x -= 1elif i == 'o':echo 100 / ((x + o) / o)o -= 1