結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2015-05-31 14:47:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 42,632 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-09 10:22:12 |
合計ジャッジ時間 | 1,630 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 RE * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d %d",&MIN,&MAX); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>#include<stdlib.h>#include <string>int main(){int MIN,MAX;char check[10]={0};scanf("%d %d",&MIN,&MAX);for(int i=MIN;i<=MAX;i++){if(i%3==0){printf("%d\n",i);}else{sprintf(check,"%d",i);for(int j=0;j<10;j++){if(check[j]=='3'){puts(check);break;}}}}}