백준 알고리즘 23530번 : Not A + B

Zoo Da·2021년 12월 18일
0

백준 알고리즘

목록 보기
306/337
post-thumbnail

링크

https://www.acmicpc.net/problem/23530

sol1) 구성적

#pragma GCC target("avx,avx2,fma")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define int int64_t
using namespace std;

int32_t main(){
  fastio;
  int t; cin >> t;
  while(t--){
    int a,b; cin >> a >> b;
    cout << 1 << "\n";
  }
}

입력으로 들어오는 a,b가 모두 1보다 크기 때문에 더해서 1이 나올 수는 없습니다
따라서 1을 출력해주면 됩니다

profile
메모장 겸 블로그

0개의 댓글