結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2016-08-05 14:36:12 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 377 ms / 5,000 ms |
コード長 | 507 bytes |
コンパイル時間 | 3,478 ms |
コンパイル使用メモリ | 75,292 KB |
実行使用メモリ | 63,008 KB |
最終ジャッジ日時 | 2024-11-07 00:13:04 |
合計ジャッジ時間 | 5,887 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No0083 { public static void main(String[] args){ try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){ int n = Integer.parseInt(br.readLine()); if(n%2 == 0){ System.out.print(1); }else{ System.out.print(7); } for(int i=0; i<n/2-1; i++){ System.out.print(1); } System.out.println(); }catch(IOException e){ e.printStackTrace(); } } }