結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2015-07-20 19:10:45 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 344 bytes |
コンパイル時間 | 10,107 ms |
コンパイル使用メモリ | 237,924 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 19:19:12 |
合計ジャッジ時間 | 10,947 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
package main import ( "fmt" "strconv" ) func isMatch(n int) bool { if n%3 == 0 { return true } s := strconv.Itoa(n) for i := 0; i < len(s); i++ { if s[i] == '3' { return true } } return false } func main() { var a, b int fmt.Scanf("%d %d", &a, &b) for i := a; i <= b; i++ { if isMatch(i) { fmt.Println(i) } } }