結果
問題 | No.207 世界のなんとか |
ユーザー |
|
提出日時 | 2019-10-04 17:24:56 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 11,313 ms |
コンパイル使用メモリ | 239,852 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-03 06:57:24 |
合計ジャッジ時間 | 9,913 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
package mainimport ("fmt""strconv")func intToStr(i int) string { return strconv.Itoa(i) }func main() {var a, b intfmt.Scan(&a, &b)ok := func(i int) bool {if i%3 == 0 {return true}s := intToStr(i)for i := range s {if s[i] == '3' {return true}}return false}for i := a; i <= b; i++ {if ok(i) {fmt.Println(i)}}}