結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2018-02-13 03:53:23 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 30,464 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 13:57:25 |
合計ジャッジ時間 | 1,412 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
ソースコード
#include <stdio.h>#include <math.h>int main(void){int A,B;int i,j,k;int q;scanf("%d %d",&A,&B);for(i=A;i<=B;i++){k=i;if(i%3==0) printf("%d\n",i);else{for(j=1;j<=10;j++){q=(k/pow(10,10-j));if(q==3){printf("%d\n",i);break;}else{k=k-q*pow(10,10-j);}}}}return 0;}