Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGC033 Aで誤った入力コードが生成される #185

Open
y-tsune opened this issue Jan 30, 2020 · 2 comments
Open

AGC033 Aで誤った入力コードが生成される #185

y-tsune opened this issue Jan 30, 2020 · 2 comments

Comments

@y-tsune
Copy link

y-tsune commented Jan 30, 2020

https://atcoder.jp/contests/agc033/tasks/agc033_a
実行コマンド
$ atcoder-tools gen agc033

生成されるコード

#include <bits/stdc++.h>
using namespace std;


void solve(long long H, long long W, std::vector<std::string> A){

}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long H;
    scanf("%lld",&H);
    long long W;
    scanf("%lld",&W);
    std::vector<std::string> A(W);
    for(int i = 0 ; i < W ; i++){
        std::cin >> A[i];
    }
    solve(H, W, std::move(A));
    return 0;
}

期待されるコード

 std::vector<std::string> A(H);
 for(int i = 0 ; i < H ; i++){
        std::cin >> A[i];
 }
@kyuridenamida
Copy link
Owner

kyuridenamida commented Feb 16, 2020

これはよくないですね。報告ありがとうございます。

@kyuridenamida
Copy link
Owner

H=WなケースのときにA_{H,W}の表記パターンでもA_{W,H}のパターンでも答えが求まるときに生成してしまうのはよくないので、確定しないものとして落とすべきパターンだと思われます。(一般的にA_{H,W}のほうが正しくあってほしいですがwriterによってはそうでもない可能性があるので)

firewood added a commit to firewood/atcoder-tools that referenced this issue Dec 13, 2020
firewood added a commit to firewood/atcoder-tools that referenced this issue Dec 14, 2020
firewood added a commit to firewood/atcoder-tools that referenced this issue Jan 24, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Apr 23, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue May 3, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Jun 1, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Jun 26, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Aug 12, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Sep 5, 2021
firewood added a commit to firewood/atcoder-tools that referenced this issue Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants