結果
| 問題 | 
                            No.1422 Social Distance in Train
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Nachia
                         | 
                    
| 提出日時 | 2021-03-12 21:21:05 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 232 bytes | 
| コンパイル時間 | 1,700 ms | 
| コンパイル使用メモリ | 192,936 KB | 
| 最終ジャッジ日時 | 2025-01-19 13:57:47 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 6 WA * 6 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ull=unsigned long long;
#define rep(i,n) for(int i=0; i<(n); i++)
int main(){
  int N; cin>>N;
  if(N%2==1) cout<<1<<endl;
  else cout<<N<<endl;
  return 0;
}
            
            
            
        
            
Nachia