結果
問題 |
No.2775 Nuisance Balls
|
ユーザー |
![]() |
提出日時 | 2024-10-13 10:18:01 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 10,948 ms |
コンパイル使用メモリ | 222,612 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 10:18:14 |
合計ジャッジ時間 | 11,897 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
package main import "fmt" func main() { var n int fmt.Scan(&n) a := []rune{} x := "CMSRo." y := []int{720,360,180,30,6,1} for i,c := range x { for p:=y[i]; n>=p; n-=p { a = append(a,c) } } fmt.Println(string(a)) }