結果
| 問題 |
No.2766 Delicious Multiply Spice
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-11-06 17:57:59 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 181 bytes |
| コンパイル時間 | 13,235 ms |
| コンパイル使用メモリ | 219,072 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 17:58:16 |
| 合計ジャッジ時間 | 14,749 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 WA * 2 |
| other | AC * 10 WA * 21 |
ソースコード
package main
import . "fmt"
func main() {
var n int64
Scan(&n)
var s string
for n>1 {
n--
if n%2==0 {
n/=2
s="A"+s
} else {
n/=3
s="B"+s
}
}
Println(s)
}
ID 21712