結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2019-08-19 13:18:52 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 397 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 04:07:45 |
合計ジャッジ時間 | 1,230 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> int main(void) { int start,end; scanf("%d %d",&start,&end); for (int i=start;i<=end;i++) { char str[1000]=""; char *adr; snprintf(str, 1000, "%d", i); adr=strchr(str,(int)'3'); if(i%3==0||adr!=NULL) { printf("%d\n",i); } } }