結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-30 15:36:13 |
| 言語 | TypeScript (6.0.2) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| コード長 | 438 bytes |
| 記録 | |
| コンパイル時間 | 4,694 ms |
| コンパイル使用メモリ | 349,680 KB |
| 実行使用メモリ | 53,244 KB |
| 最終ジャッジ日時 | 2026-06-05 04:33:18 |
| 合計ジャッジ時間 | 7,527 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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'));