結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2016-08-05 14:30:55 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 281 ms / 5,000 ms |
コード長 | 512 bytes |
コンパイル時間 | 3,400 ms |
コンパイル使用メモリ | 81,024 KB |
実行使用メモリ | 43,176 KB |
最終ジャッジ日時 | 2024-11-07 00:12:03 |
合計ジャッジ時間 | 5,510 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()); String str = new String(); for(int i=0; i<n/2-1; i++){ str += 1; } if(n%2 == 0){ str += 1; }else{ str = 7 + str; } System.out.println(str); }catch(IOException e){ e.printStackTrace(); } } }