結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2025-10-05 17:28:19 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 35,904 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 17:28:21 |
合計ジャッジ時間 | 1,580 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <stdio.h> int main(void) { int s, e; int i, j; char str[10]; scanf("%d%d", &s, &e); for(i = s;i <= e;i++){ if(i % 3 == 0){ printf("%d\n", i); } else{ sprintf(str, "%d", i); j = 0; while(str[j] != '\0'){ if(str[j] == '3'){ printf("%d\n", i); break; } j++; } } } return 0; }