結果
| 問題 | 
                            No.835 ジュース
                             | 
                    
| コンテスト | |
| ユーザー | 
                             LayCurse
                         | 
                    
| 提出日時 | 2019-07-06 12:02:09 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 866 bytes | 
| コンパイル時間 | 1,789 ms | 
| コンパイル使用メモリ | 192,688 KB | 
| 最終ジャッジ日時 | 2025-01-07 06:18:39 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 6 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
inline void rd(int &x){
  int k, m=0;
  x=0;
  for(;;){
    k = getchar_unlocked();
    if(k=='-'){
      m=1;
      break;
    }
    if('0'<=k&&k<='9'){
      x=k-'0';
      break;
    }
  }
  for(;;){
    k = getchar_unlocked();
    if(k<'0'||k>'9'){
      break;
    }
    x=x*10+k-'0';
  }
  if(m){
    x=-x;
  }
}
inline void wt_L(char a){
  putchar_unlocked(a);
}
inline void wt_L(int x){
  char f[10];
  int m=0, s=0;
  if(x<0){
    m=1;
    x=-x;
  }
  while(x){
    f[s++]=x%10;
    x/=10;
  }
  if(!s){
    f[s++]=0;
  }
  if(m){
    putchar_unlocked('-');
  }
  while(s--){
    putchar_unlocked(f[s]+'0');
  }
}
int N;
int main(){
  rd(N);
  N += N/2;
  wt_L(N);
  wt_L('\n');
  return 0;
}
// cLay varsion 20190706-1 [beta]
// --- original code ---
// int N;
// {
//   rd(N);
//   N += N/2;
//   wt(N);
// }
            
            
            
        
            
LayCurse