結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2020-07-30 15:47:17 |
言語 | TypeScript (5.7.2) |
結果 |
AC
|
実行時間 | 73 ms / 5,000 ms |
コード長 | 572 bytes |
コンパイル時間 | 7,821 ms |
コンパイル使用メモリ | 229,016 KB |
実行使用メモリ | 39,680 KB |
最終ジャッジ日時 | 2024-12-31 16:16:46 |
合計ジャッジ時間 | 9,946 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
function Main(input: any) {// inputにはすべての入力の文字列が与えられるので必要に応じて input.split("\n") などで分割する。const data = input.split("\n");const first_line: string = data[0].split(" ");const a: number = Number(first_line[0]);const b: number = Number(first_line[1]);var result: String = "";for (let i: number = a; i <= b; i++) {if (i.toString().indexOf('3', 0) >= 0 || i % 3 == 0) {console.log(i);}}}// Don't edit this line!Main(require("fs").readFileSync("/dev/stdin", "utf8"));