結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2015-05-15 22:46:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 412 bytes |
コンパイル時間 | 1,240 ms |
コンパイル使用メモリ | 157,988 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 04:11:31 |
合計ジャッジ時間 | 1,880 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 14 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d%d",&a,&b); | ~~~~~^~~~~~~~~~~~~~
ソースコード
//C++14 template AOJ compare: #include<bits/stdc++.h> #include<cstdio> using namespace std; #define REP(a,b,c) for(a=b;a<c;a++) #define rep(x,y,z) for(x=y:x=z;x--) #define PI 3.14159265359 int main(){ int a,b; scanf("%d%d",&a,&b); for(int i=a;i<=b;i++){ if(i%3==0||i/10==3||i/100==3||i/1000==3||i/10000==3||i/100000==3||i/1000000==3||i/10000000==3||i/100000000==3||i/1000000000==3)cout<<i<<endl; } }