結果
問題 | No.836 じょうよ |
ユーザー | bdisheoshepeha |
提出日時 | 2019-06-25 15:49:02 |
言語 | C++11 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 516 bytes |
コンパイル時間 | 1,181 ms |
コンパイル使用メモリ | 147,772 KB |
実行使用メモリ | 4,896 KB |
最終ジャッジ日時 | 2023-09-05 03:13:06 |
合計ジャッジ時間 | 11,380 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | WA | - |
testcase_25 | RE | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | RE | - |
testcase_37 | RE | - |
testcase_38 | RE | - |
testcase_39 | RE | - |
testcase_40 | RE | - |
ソースコード
#include<bits/stdc++.h> #include<algorithm> #define lint long long int #define ldouble long double using namespace std; int judge(vector<lint> ar,lint num){ for(int i=0;i<ar.size();i++){ if(ar[i]==num)return 0; } return 1; } int main(){ vector<lint> ans; lint a,b,n; cin>>a>>b>>n; for(lint i=min(a,b);i<max(a,b);i++){ if(judge(ans,i%n)==1)ans.push_back(i%n); if(ans.size()==n)break; } for(int i=0;i<n;i++){ cout<<ans[i]<<endl; } return 0; }