結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2017-03-22 23:14:12 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 352 ms / 5,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 2,097 ms |
コンパイル使用メモリ | 72,872 KB |
実行使用メモリ | 48,796 KB |
最終ジャッジ日時 | 2024-07-05 17:49:16 |
合計ジャッジ時間 | 4,223 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.io.*;public class Main{public static void main(String[] args)throws IOException{BufferedReader br=new BufferedReader(new InputStreamReader(System.in));String str=br.readLine();int N=Integer.parseInt(str);if(N%2==0){for(int i=0;i<N/2;i++)System.out.print("1");System.out.println();}else{System.out.print("7");for(int i=0;i<(N-3)/2;i++)System.out.print("1");System.out.println();}}}