結果
| 問題 | No.2766 Delicious Multiply Spice |
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-11-07 20:02:51 |
| 言語 | Go (1.26.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 10,953 ms |
| コンパイル使用メモリ | 278,004 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-08 03:27:52 |
| 合計ジャッジ時間 | 11,849 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 8 |
| other | AC * 19 WA * 12 |
ソースコード
package main
import . "fmt"
func main() {
var n int64
Scan(&n)
var s string
for n>1 {
n--
if n%2==0&&(n/2%2==1||n/2%3==1) {
n/=2
s="A"+s
} else {
n/=3
s="B"+s
}
}
Println(s)
}
ID 21712