結果
問題 | No.1665 quotient replace |
ユーザー |
![]() |
提出日時 | 2021-09-03 22:35:29 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 92,616 KB |
最終ジャッジ日時 | 2024-12-15 15:15:22 |
合計ジャッジ時間 | 120,991 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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==1a2=(aa**0.5).ceili=2b=0while aa>1||i<=a2if aa%i==0aa/=ib+=1elsei+=1endendx^=bendif x==0puts "black"elseputs "white"end