結果
問題 | No.1665 quotient replace |
ユーザー |
![]() |
提出日時 | 2021-09-03 22:33:56 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 363 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 92,360 KB |
最終ジャッジ日時 | 2024-12-15 15:09:39 |
合計ジャッジ時間 | 122,196 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 TLE * 28 |
コンパイルメッセージ
Syntax OK
ソースコード
require "prime"getsa=gets.split.map(&:to_i)x=0a.each do |aa|next if aa==1i=2b=0while aa>1if aa%i==0aa/=ib+=1elsei+=1endendx^=bendif x==0puts "black"elseputs "white"end