結果
問題 |
No.358 も~っと!門松列
|
ユーザー |
![]() |
提出日時 | 2018-02-17 02:13:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 610 ms |
コンパイル使用メモリ | 64,432 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 20:51:45 |
合計ジャッジ時間 | 3,566 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 13 |
ソースコード
#include<iostream> #include<string> #include<cstdio> using namespace std; int main(){ int A1,A2,A3,count=0; cin >> A1 >> A2 >> A3; for(int i=1;i<10000000;i++){ if((A2%i>A1%i&&A2%i>A3%i)||(A2%i<A1%i&&A2%i<A3%i)) count++; } if(count > 1000) cout << "INF"; else cout << count; return 0; }