結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-30 15:36:13 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 5,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 7,845 ms |
| コンパイル使用メモリ | 229,612 KB |
| 実行使用メモリ | 39,680 KB |
| 最終ジャッジ日時 | 2024-12-31 16:16:36 |
| 合計ジャッジ時間 | 9,873 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
import { readFileSync } from 'fs';
function Main(input: string) {
const data = input.split('\n');
const firstLine = data[0].split(' ');
const start = parseInt(firstLine[0]);
const end = parseInt(firstLine[1]);
for (let i = start; i <= end; i++) {
if (i % 3 === 0) {
console.log(i);
continue;
}
if (String(i).match(/3/)) {
console.log(i);
}
}
}
Main(readFileSync('/dev/stdin', 'utf8'));